List of usage examples for javafx.scene.control Separator getStyleClass
@Override public final ObservableList<String> getStyleClass()
From source file:com.github.drbookings.ui.controller.BookingDetailsController.java
private void addSeparator() { final HBox bb = new HBox(); bb.setPrefHeight(20);/*w w w . j a v a 2 s . c om*/ bb.setAlignment(Pos.CENTER); final Separator s = new Separator(); s.getStyleClass().add("large-separator"); bb.getChildren().add(s); HBox.setHgrow(s, Priority.ALWAYS); content.getChildren().add(bb); }