Since the last two posts we have updated the project wizard so when you create a project it comes with an already configured artifact.
If you accept to create a project and open File → Project Structure → Artifacts, you will see a configured artifact of JavaFx Application type.
You can specify to build this artifact on each make by enabling corresponding option here or you can build it manually when you need it via Build → Build Artifacts… action. Specific JavaFX settings such as Application class, Title, Vendor, etc are hidden on the JavaFX tab.
All required fields are already set for you so you can try to build your first JavaFX application right after project creation. If you need to pass additional settings you can generate an ant build via Build → Generate Ant Build… and pass everything you need in the generated build file. You can also attach an ant task to be performed on make or before any run configuration.
And the last one for today. If your application already needs a preloader you can configure additional artifact for a module with the preloader.
This artifact will ask you to specify your preloader class and define the preloader.jar layout. If you add this artifact in the JavaFx Application artifact dependencies IntelliJ IDEA will use specified preloader to prepare resulted bundle.
You need additional settings for your JavaFX applications in UI? Please don’t hesitate to ask.
Develop with Pleasure!