Java Reference
In-Depth Information
New JavaFX Application Dialog
In the New JavaFX Application dialog (Fig. 25.5), specify the following information:
1. Project Name: field—This is your app's name. Enter Welcome in this field.
2. Project Location: field—The project's location on your system. NetBeans places
new projects in a subdirectory of NetBeansProjects within your user account's
Documents folder. You can click the Browse… button to specify a different loca-
tion. Your project's name is used as the subdirectory name.
3. FXML name: field—The name of the FXML filename that will contain the app's
GUI. Enter Welcome here—the IDE creates the file Welcome.fxml in the project.
4. Create Application Class: checkbox—When this is checked, NetBeans creates a
class with the specified name. This class contains the app's main method. Enter
Welcome in this field. If you precede the class name with a package name, Net-
Beans creates the class in that package; otherwise, NetBeans will place the class in
the default package.
Click Finish to create the project.
Fig. 25.5 | New JavaFX Application dialog.
25.4.2 NetBeans Projects Window—Viewing the Project Contents
The NetBeans Projects window provides access to all of your projects. The Welcome node
represents this app's project. You can have many projects open at once—each will have its
own top-level node. Within a project's node, the contents are organized into folders and
files. You can view the Welcome project's contents by expanding the Welcome > Source
 
 
Search WWH ::




Custom Search