List of usage examples for javafx.scene.control Separator setOrientation
public final void setOrientation(Orientation value)
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*/ }