Java Reference
In-Depth Information
1.
Launch NetBeans IDE.
2.
From the File menu, select New Project.
3.
Under Choose Project and Categories, select the JavaFX folder.
4.
Under Projects, select the JavaFX Application and click Next.
a.
Note: If this is your first JavaFX project in NetBeans, the
JavaFX module may automatically activate at this time.
5.
Specify HelloWorldMain for your project name.
6.
Change or accept the defaults for the Project Location and Pro-
ject Folder fields.
7.
Ensure that the JavaFX Platform is set to JDK 1.8. Leave the
Create a Custom Preloader box checked.
8.
Make sure the Create Application Class option is selected. Click
Finish.
9.
In the NetBeans IDE on the Projects tab, select the newly cre-
ated project. Open the Project Properties dialog box to verify
that the Source/Binary format settings are JDK 8. Click Sources
under Categories.
10.
After closing the Java Platform Manager window, click OK to
close the Project Properties window.
11.
To run and test your JavaFX Hello World application, access the
Run menu and select Run Main Project. You could also right-
click on the project directory and choose Run from the contextu-
al menu.
Figure 14-1 shows a simple JavaFX Hello World application launched from the
NetBeans IDE.
 
Search WWH ::




Custom Search