Example usage for javafx.scene.control Separator setOrientation

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

Introduction

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

Prototype

public final void setOrientation(Orientation value) 

Source Link

Usage

From source file:io.bitsquare.gui.main.overlays.Overlay.java

protected void addSeparator() {
    if (headLine != null) {
        Separator separator = new Separator();
        separator.setMouseTransparent(true);
        separator.setOrientation(Orientation.HORIZONTAL);
        separator.setStyle("-fx-background: #ccc;");
        GridPane.setHalignment(separator, HPos.CENTER);
        GridPane.setRowIndex(separator, ++rowIndex);
        GridPane.setColumnSpan(separator, 2);

        gridPane.getChildren().add(separator);
    }/*from ww w  .  ja  v  a2 s .  c  om*/
}