Back to course

The Stage and Scene Architecture

JavaFX 0 to Hero

The Stage and Scene Architecture

Think of a JavaFX application like a theater:

  1. Stage: The window (the container).
  2. Scene: The content within the window (the play).
  3. 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.