Chapter 2Setting the Scene

Key Skills & Concepts

• Creating a JavaFX project in NetBeans

• Creating a Stage and a Scene

• Running a JavaFX application

In this chapter you will learn how to set up a new JavaFX project in NetBeans. JavaFX projects can be confusing for beginners, and sorting through some of that confusion will help you follow the rest of this book. This chapter walks you through, step by step, the process of creating your first project, adding a Stage to the project, adding a Scene to the Stage, and running the application.

Creating a New JavaFX Project

If you have not already, open your copy of NetBeans 6.9. You will create a new JavaFX project for this chapter using NetBeans.


You will use the project created in this section ...

Get JavaFX A Beginners Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.