Class Separator

java.lang.Object
All Implemented Interfaces:
Styleable, EventTarget, Skinnable

public class Separator extends Control
A horizontal or vertical separator line. The visual appearance of this separator can be controlled via CSS. A horizontal separator occupies the full horizontal space allocated to it (less padding), and a vertical separator occupies the full vertical space allocated to it (less padding). The halignment and valignment properties determine how the separator is positioned in the other dimension, for example, how a horizontal separator is positioned vertically within its allocated space.

The separator is horizontal (i.e. isVertical() == false) by default.

The style-class for this control is "separator".

The separator provides two pseudo-classes "horizontal" and "vertical" which are mutually exclusive. The "horizontal" pseudo-class applies if the separator is horizontal, and the "vertical" pseudo-class applies if the separator is vertical.

Separator sets focusTraversable to false.

Example:

 Button b0 = new Button("Button 0");
 Button b1 = new Button("Button 1");
 Button b2 = new Button("Button 2");
 Button b3 = new Button("Button 3");
 Separator separator = new Separator(Orientation.HORIZONTAL);
 VBox vBox = new VBox(b0, b1, separator, b2, b3);
Image of the Separator control
Since:
JavaFX 2.0