Section 25.3 JavaFX App Window Structure

• 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).

• The stage contains one scene that defines the GUI as a scene graph—a tree structure of an app’s visual elements, such as GUI controls, shapes, images, video, text and more. The scene is an instance of class Scene (package javafx.scene).

• Each visual element in the scene graph is a node—an instance of a subclass of Node (package javafx.scene), which defines common attributes and behaviors for all nodes in the scene graph.

• The first node in the scene graph is known as the root node.

• Nodes that have children are typically layout containers that arrange their child nodes ...

Get Java™ How To Program (Early Objects), Tenth 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.