12.3 JavaFX App Window Structure
A JavaFX app window consists of several parts (Fig. 12.1).
Fig. 12.1
![The screen capture of several parts of a java f x app window.](/api/v2/epubs/9780134751962/files/images/p491_001.png)
JavaFX app window parts.
Controls
Controls are GUI components, such as Label
s that display text, TextField
s that enable a program to receive user input, Button
s that users click to initiate actions, and more.
Stage
The window in which a JavaFX app’s GUI is displayed is known as the stage and is an instance of class Stage
(package javafx.stage
).
Scene
The stage contains one active scene that defines the GUI as a scene graph—a tree data structure of an app’s visual elements, such as GUI controls, shapes, images, ...
Get Java How to Program, Early Objects, 11th Edition 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.