Set divider position of SplitPane
问题 I want to set the divider of a SplitPane to a certain default position. This does not work, the divider stays in the middle: public void start(Stage primaryStage) throws Exception{ SplitPane splitPane = new SplitPane(new Pane(), new Pane()); // Report changes to the divider position splitPane.getDividers().get(0).positionProperty().addListener( o -> System.out.println(splitPane.getDividerPositions()[0]) ); // Doesn't work: splitPane.setDividerPositions(0.8); // The docs seem to recommend the