How to create a JavaFX module in IntelliJ IDEA


Question

I would like to integrate a JavaFX GUI in an existing IntelliJ IDEA Java project (java version 1.8.0_20).

Although I can create a JavaFX project from scratch (JavaFX plugin is enabled) in my IDE, I can't figure out how to create a module.

Do I need to define a new module SDK for a new Java module? Or does the type of the JavaFX module has to be IntelliJ Platform Plugin? I tried both without any success. Please help.

Many thanks, Cristina

1
4
9/11/2014 7:26:05 AM

Accepted Answer

I don't think you can define a new JavaFX module in Idea 13.1. Note that there is not much difference between a JavaFX project and a non-JavaFX project in Idea, so you can just create a normal Java module and make a couple of manual tweaks to the module configuration and it should behave the same as if you created a JavaFX project. See the following answer for more details:

3
5/23/2017 12:15:50 PM

Licensed under: CC-BY-SA with attribution
Not affiliated with: Stack Overflow
Icon