O'Reilly logo

JavaFX™: A Beginner’s Guide by J. F. DiMarzio

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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.

NOTE

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required