Setup a JavaFX Project for JDK 11 Using Intellij
Why Stack Overflow recommends it
Stack Overflow users link it when answering why IntelliJ cannot find JavaFX on JDK 11 and need a step-by-step walkthrough of the modular setup.
Recommended by 3 people across 3 different months, 2019 to 2020.
What it is
A short screen-recorded tutorial from Tim Buchalka's Learn Programming Channel showing how to set up a JavaFX project in IntelliJ IDEA for JDK 11, where JavaFX is no longer bundled with the JDK. It walks through the project configuration needed to get JavaFX code compiling and running.
What people said
Recommends Coder992 · 2019-04 · Stack Overflow · on “IntelliJ can't recognize JavaFX 11 with OpenJDK 11”
The issue that JavaFX is no longer part of JDK 11. The following solution works using IntelliJ (haven't tried it with NetBeans): Add JavaFX Global Library as a dependency: Settings -> Project Structure -> Module. In module go to the Dependencies tab, and click the add "+" sign -> Library -> Java-> choose JavaFX from the list and click Add Selected, then Apply settings. Right click source file (src) in your JavaFX project, and create a new module-info.java file . Inside the file write the following code : module YourProjectName { requires javafx.fxml; requires javafx.controls; requires javafx.graphics; opens sample; } These 2 steps will solve all your issues with JavaFX, I assure you. Referen
Recommends Skwead · 2019-07 · Stack Overflow · on “JavaFX not found by IntelliJ”
Many thanks @ElyasHadizadeh, that video helped a lot, but I had to watch the next one too: [this video] where it is taught how to setup the project. Many thanks to everyone that helped me.
Recommends CaspianTerrazzo · 2020-04 · Stack Overflow · on “JavaFX Program isnt working when trying to compile with FXML-File”
JavaFX11+ is modular Look at "modular java" and how to use the module-info.java to export javaFX modules to your project: releated thread [LINK] Also a videos tutorial of it: [this video] . Alternatively you can use gradle to export the required Modules to your project.