The JavaFX version currently generated in projects by the Idea New JavaFX Project wizard will create the project using a default JavaFX version (based I think on a template that ships with a given Idea version). Upgrading the Idea version will usually set the new JavaFX Project Wizard to generate projects using a new (recent) JavaFX version.
With Idea 2024.3 there is no option to specify the JavaFX version within the Idea New JavaFX Project Wizard UI (you could log a feature request with Idea for that if you wanted).
However, selecting any needed JavaFX version after the project is generated is very easy. For a Maven generated project, see:
As of 2025-02, the current version of JavaFX (OpenJFX) is 23.0.2. The minimum JDK version is Java 21. The latest LTS version is JavaFX 21.0.6, requiring Java 17+.
| Description | JavaFX version | Java (JDK) version |
| Current version of JavaFX | 23.0.2 | 21 or later |
| Latest LTS version of JavaFX | 21.0.6 | 17 or later |
In the dependency section you will set the versions for JavaFX here, for example to change from 19 to 23.0.2, change all of the references for <version>19</version> to 23.0.2. Similarly for any other org.openjfx artifact dependencies you may add to your project e.g. javafx-media or javafx-web if you use those. These changes need to be made only once for any project generated by the wizard.
<dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-controls</artifactId> <version>19</version> </dependency> <dependency> <groupId>org.openjfx</groupId> <artifactId>javafx-fxml</artifactId> <version>19</version> </dependency>
The generated project is modular and does not use the JavaFX SDK (it uses JavaFX artifacts fetched from Maven Central instead), so the JavaFX SDK installation will be irrelevant unless you delete the module-info.java from the generated project and manually modify the VM runtime options for execution to refer to an SDK version of JavaFX.