Skip to main content

Layouts & Controls

Learn Layouts & Controls (JavaFX UI & Events, JavaFX) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

Common Layout Panes JavaFX ships several layout containers that automatically arrange their children: • VBox / HBox - vertical / horizontal stacking. • BorderPane - top, bottom, left, right, and center regions. • GridPane - rows and columns, like an HTML table. • StackPane - layers children on top of one another (centered by default).

More lessons in JavaFX UI & Events