Adding JavaFx to Intellij idea Ide:
- Download the latest JavaFx Scene builder from Gluonhq and install it.
- The application can work standalone without Intellij idea but to use it inside Intellij idea the installation path must be added.
- Go to File -> Settings -> Languages & Frameworks -> JavaFx and add the installation path to it.
-
javafx path example - Also make sure JavaFx plugin is installed and enabled.
-
select javafx in new projects menu and click next -
In the next window name your project and click finish - Now in the projects tab go to YourProjectName -> src -> sample there should be two Java Files Main, Controller and sample.fxml
-
Click on the Scene builder tab in the bottom of the window -
It should look like this -
Now just drag a button from control section and run it
One thought on “Adding JavaFx Scene Builder to Intellij idea Ide and Creating Sample Project”