how set splitpane divider width in javafx 2


Question

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
1
4
4/28/2014 9:23:08 AM

Accepted Answer

Use css to change the width of the divider:

.split-pane > .split-pane-divider {  
    -fx-padding: 0 0.75em 0 0.75em;  
} 
13
4/28/2014 12:54:20 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon