how set splitpane divider width in javafx 2

10,310

Use css to change the width of the divider:

.split-pane > .split-pane-divider {  
    -fx-padding: 0 0.75em 0 0.75em;  
} 
Share:
10,310
java baba
Author by

java baba

Updated on June 27, 2022

Comments

  • java baba
    java baba almost 2 years

    I have SplitPane in my application. This is SplitPane have divider with default width. How can i set the width of SplitPane Divider

    @FXML
    private SplitPane splitPane;
    // splitPane here get Divider and set New Width
    
  • Fran Marzoa
    Fran Marzoa over 5 years
    Is there anyway to do this in the fxml file directly?