package bugs; import javafx.application.Application; import javafx.scene.Scene; import javafx.scene.control.Button; import javafx.scene.control.SplitPane; import javafx.scene.layout.StackPane; import javafx.scene.paint.Color; import javafx.scene.shape.Rectangle; import javafx.stage.Stage; public class RT15747 extends Application { public static void main(String[] args) { launch(args); } @Override public void start(Stage stage) throws Exception { StackPane sp = new StackPane(); sp.getChildren().add(new Rectangle(100, 100, Color.YELLOW)); StackPane sp1 = new StackPane(); sp1.setMinWidth(100); sp1.setMaxWidth(200); sp1.setMinHeight(100); sp1.setMaxHeight(200); sp1.getChildren().add(new Button("MIN 100 MAX 200")); StackPane sp2 = new StackPane(); sp2.setMinWidth(75); sp2.setMaxWidth(150); sp2.setMinHeight(75); sp2.setMaxHeight(150); sp2.getChildren().add(new Button("MIN 75 MAX 150")); StackPane sp3 = new StackPane(); sp3.setMinWidth(50); sp3.setMaxWidth(150); sp3.setMinHeight(50); sp3.setMaxHeight(150); sp3.getChildren().add(new Button("MAX 150")); SplitPane root = new SplitPane(); root.getItems().setAll(sp1, sp2, sp3); root.setDividerPositions(0.3, 0.7); Scene scene = new Scene(root, 302, 302); stage.setScene(scene); stage.setVisible(true); } }