Skip to content

Instantly share code, notes, and snippets.

@dmitrykolesnikovich
Created January 6, 2020 23:54
Show Gist options
  • Save dmitrykolesnikovich/40ff6b1f81b2eaad752eb2ac8e73605e to your computer and use it in GitHub Desktop.
Save dmitrykolesnikovich/40ff6b1f81b2eaad752eb2ac8e73605e to your computer and use it in GitHub Desktop.
How to make JavaFX divider narrower
// style1.css
.split-pane > .split-pane-divider {
-fx-padding: 1;
}
// Sample.java
splitPane.getStylesheets().add(getClass().getResource("style1.css").toExternalForm());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment