# New JavaFX in Swing Application

Use to create a new Java SE application with enabled JavaFX-in-Swing embedding in a standard IDE project. You can also generate a main class with sample JavaFX-in-Swing code in the project. Standard projects use an IDE-generated Ant build script to build, run, and debug your project.

In the Name and Location page, you have to set the following properties:

Element | Description
--- | ---
Project Name | Specifies the display name of the project. This name is also used to create the project folder.
Project Location | Specifies the folder where you want to store the project metadata and source code. When you create an empty Java project, you cannot store the project folder and the project source code in separate locations like you can with projects from existing source code.
Project Folder | Specifies the folder where you want to store the project metadata and source code. The folder is a concatenation of the project location and the project name.
JavaFX Platform | Selects the JavaFX-enabled Java platform from the drop-down list. If the Java platform you select is not JavaFX-enabled, a warning appears at the bottom of the panel. If you have no JavaFX-enabled platforms, you must register a new Java platform. Click Manage Platforms.
Manage Platforms | Opens the Java Platform Manager. You can enable JavaFX for a Java platform in the Platform Manager.
Use Dedicated Folder for Storing Libraries | When selected, specifies a Libraries Folder where required compilation libraries are stored.
Create Main Class | Specifies the package and name of the Java Swing main class. You should enter the fully qualified name of the class without the `.java` extension (for example, `com.me.MyClass`).

When you click Finish, the project is created on your computer and opened in the Projects window. If you created an application class, this class opens in the editor. If you created an FXML application, the application's FXML file and controller class also open in the editor.

Related Topics

Developing Applications with NetBeans IDE,

Developing Applications with NetBeans IDE,

Copyright © 2016, Oracle and/or its affiliates. All rights reserved.