Class Spacer

java.lang.Object
javafx.scene.Node
javafx.scene.Parent
javafx.scene.layout.Region
atlantafx.base.controls.Spacer
All Implemented Interfaces:
javafx.css.Styleable, javafx.event.EventTarget

public class Spacer extends javafx.scene.layout.Region
A spacing component used to distribute remaining width between a parent's child components.

When placing a single Spacer before or after the child components, the components will be pushed to the right and left of its container for horizontally oriented Spacer, or to the top and bottom for vertically oriented Spacer.

You can also specify the `Spacer` size. In this case, it will not be extended and will work like a gap with the given size between sibling components.

Note that this control is not intended to be used in FXML unless SceneBuilder supports constructor arguments, because none of the properties mentioned above are observable.