package bugs; import javafx.application.Application; import javafx.scene.Group; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.ScrollPane; import javafx.scene.layout.StackPane; import javafx.scene.layout.VBox; import javafx.stage.Stage; public class RT19738 extends Application { public static void main(String[] args) { Application.launch(args); } public VBox createButtons() { VBox vbox = new VBox(); for (int i = 0; i < 20; i++) { vbox.getChildren().add(new Button("rrrrrrrrrrrrrrrr Button " + i)); } return vbox; } @Override public void start(Stage stage) throws Exception { // Group rotatedRoot = // GroupBuilder.create().children( // StackPaneBuilder.create().children( // ScrollPaneBuilder.create().content(createButtons()).build() // ).rotate(-90).build() // ).rotate(90).build(); ScrollPane scroll = new ScrollPane(); scroll.setPrefWidth(150); scroll.setContent(createButtons()); StackPane sp = new StackPane(); sp.getChildren().add(scroll); sp.setRotate(-90); Group rotatedRoot = new Group(); rotatedRoot.getChildren().add(sp); rotatedRoot.setRotate(90); Scene scene = new Scene(rotatedRoot); stage.setScene(scene); stage.show(); } }