Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
Most JavaFX nodes go on a Stage. The naming of this node, as the Stage, is very apropos. Think of the Stage as the foundation for the rest of your script’s objects. Just as with a dramatic production, the action happens on a stage—and JavaFX is no exception. All of your action is going to take place on a Stage.
To add a Stage to your script, focus on the Palette area to the right of the NetBeans IDE. In the Palette area, expand the Applications accordion tab if it is not already expanded. You will see three application snippets you can add to your script: the Stage, CustomNode, and Scene nodes.