© The Author(s), under exclusive license to APress Media, LLC, part of Springer Nature 2023
P. SpäthFrontend Development with JavaFX and Kotlinhttps://doi.org/10.1007/978-1-4842-9717-9_4

4. Containers

Peter Späth1  
(1)
Leipzig, Germany
 

GUI elements in JavaFX are ordered in a hierarchical tree-like fashion on a scene. The bottommost element is called the root element or root node, and in the majority of cases, this will be a container node (or pane), comprising child nodes that can be container nodes in turn, or leaf nodes that represent purely graphical elements like texts or images, and controller nodes like text input fields, buttons, sliders, or other.

The UI elements all get called nodes, but for clarity we sometimes name container nodes just ...

Get Frontend Development with JavaFX and Kotlin: Build State-of-the-Art Kotlin GUI Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.