Layouts

Layouts are container objects that you use to place elements within a view. User interfaces constist of multiple nested layouts that are filled with control objects. It is important to know how and when to use these layouts.

BorderPane

The BorderPane is a very common top-level layout used as the base for your window. This pane divides its area in 5 areas each holding one control - usually another layout. These areas are called top, center, bottom, left and right:

TODO: Oh look, an image of the areas of a border pane!

The center area stretches horizontally and vertically to use up all available space.

VBox & HBox

GridPane

StackPane

FlowPane

TilePane

Anchor Pane