Example usage for javafx.scene.control Separator getStyleClass

List of usage examples for javafx.scene.control Separator getStyleClass

Introduction

In this page you can find the example usage for javafx.scene.control Separator getStyleClass.

Prototype

@Override
    public final ObservableList<String> getStyleClass() 

Source Link

Usage

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);
}