Skip to content

Instantly share code, notes, and snippets.

@guigarage
Created September 16, 2014 18:08
Show Gist options
  • Save guigarage/d5b5127d368916e8978e to your computer and use it in GitHub Desktop.
Save guigarage/d5b5127d368916e8978e to your computer and use it in GitHub Desktop.
responsive design JavaFX
Toolbar extraSmallToolbar = new Toolbar(...);
extraSmallToolbar.getStyleClass().add("visible-xs");
Toolbar smallToolbar = new Toolbar(...);
smallToolbar.getStyleClass().add("visible-sm");
Toolbar mediumToolbar = new Toolbar(...);
mediumToolbar.getStyleClass().add("visible-md");
Toolbar largeToolbar = new Toolbar(...);
largeToolbar.getStyleClass().add("visible-lg");
pane.getChildren().add(extraSmallToolbar, smallToolbar, mediumToolbar, largeToolbar);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment