The Stage and Scene Architecture
Think of a JavaFX application like a theater:
- Stage: The window (the container).
- Scene: The content within the window (the play).
- Nodes: The elements (actors) like buttons, labels, and layouts.
A Stage can only have one Scene at a time, but you can swap Scenes to change the view.