import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.ScrollPane; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class Main extends Application{ /** * @param args */ public static void main(String[] args) { launch(args); } @Override public void start(Stage primaryStage) throws Exception { primaryStage.setTitle("Scroll-Pane-Bug!"); ScrollPane sp = new ScrollPane(); VBox content = new VBox(); for(int i=0; i<1000; i++){ Button b = new Button(String.valueOf(i)); b.setPrefSize(200, 200); content.getChildren().add(b); } sp.setContent(content); primaryStage.setScene(new Scene(sp, 400, 400)); primaryStage.show(); } }