JavaFX - SplitPane, resize & proportions

后端 未结 3 1728
伪装坚强ぢ
伪装坚强ぢ 2021-01-17 16:48

How can I achieve proportional resize of whole SplitPane?

public class JfxSplitPaneTest extends Application {
    @Override
    public void start(Stage stage         


        
3条回答
  •  攒了一身酷
    2021-01-17 17:06

    Try to set the divisors like AS3Boyan said

    split.setDividerPositions(0.1f, 0.6f, 0.9f)
    

    and add this:

    How can I avoid a SplitPane to resize one of the panes when the window resizes?

提交回复
热议问题