Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 2. Setting the Scene > Your First Stage

Your First Stage

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.

Inserting the Stage Snippet

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.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial