O'Reilly logo

NetBeans IDE 8 Cookbook by Rhawi Dantas, David Salter

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

Creating a JavaFX application

In this recipe, we'll see how we can use NetBeans to create a JavaFX application. We'll create two windows; one of these will be developed in Java code and the second will be developed using FXML.

Getting ready

To complete this recipe, you can use either the Java SE or Java EE version of NetBeans.

You must have JDK 7u6 or higher installed to be able to develop and run JavaFX applications.

How to do it…

  1. Click on File and then New Project....
  2. Select JavaFX from the Categories list and JavaFX Application from the list of Projects.
  3. Click on Next.
  4. Enter the Project Name field as WelcomeToFX. Ensure a valid project location is specified. Ensure Create Application Class is selected as com.davidsalter.cookbook.welcometofx.WelcomeToFX ...

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