import javafx.application.Application;
import javafx.scene.Scene;
import javafx.scene.control.Label;
import javafx.scene.control.ScrollPane;
import javafx.scene.layout.VBox;
import javafx.stage.Stage;

public class TestScroll extends Application {

    @Override
    public void start(Stage primaryStage) {
        primaryStage.setTitle("Scroll Test");
        ScrollPane scrollPane = new ScrollPane();

        VBox vbox = new VBox();
        for (int i = 1; i <= 1000; i++) {
            vbox.getChildren().add(new Label("Node " + i));
        }

        scrollPane.setContent(vbox);

        Scene scene = new Scene(scrollPane, 300, 400);
        primaryStage.setScene(scene);
        primaryStage.show();
    }

    public static void main(String[] args) {
        Application.launch(TestScroll.class, args);
    }
}