12.3 JavaFX App Window Structure
A JavaFX app window consists of several parts (Fig. 12.1).
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, Late 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.