You can create the following JavaFX application projects in NetBeans IDE:
All 3 projects are created in the New Java Project wizard (Ctrl-Shift-N) from the JavaFX category.
To work with JavaFX in NetBeans IDE, you need the following:
For details, see .
In a JavaFX Application without FXML, graphic layout and actions are both defined in Java classes. By default, both are defined in the main Application class.
In a JavaFX FXML application, graphic layout is defined in an FXML file and actions are defined in a controller Java class. The controller class implements the interface .
A preloader is a small application that is started before the main application to customize the startup experience. You can create JavaFX preloaders either by running the New JavaFX Preloader wizard or by selecting Create Custom Preloader in the New JavaFX Application wizard.
Edit JavaFX Java source code as you edit any other Java source code in the IDE. See About Editing Java Source Files.
Edit FXML files as you edit any XML document in the IDE. See About Editing XML Documents.
Build and run a JavaFX application as you build and run a standard Java application, with the difference that you can configure a JavaFX project to run in the following ways:
To set how a JavaFX application will be run, open the Project Properties and go to the Run category. To open Project Properties, right-click the project's node in the Projects window and select Properties from the context menu.
Debug JavaFX applications as you would debug Java applications. In addition, you can use the Java GUI visual debugger with JavaFX applications.