by hackarama · 4y ago · 0 comments
I have to say, IntelliJ has come a long way. I was able to create a new JavaFX project from template and the magic green "Run" button worked out of the box. If you've previously been off-put by the difficulty in getting up and running with JavaFX, it's worth it to take another look since some of the improvements by IntelliJ. It feels a lot like the JDK8 days.
With a maven project it's a single dependency: org.openjfx:javafx-controls:18.0.1
And a simple plugin (org.openjfx:javafx-maven-plugin:0.0.5? (I think)), https://github.com/openjfx/javafx-maven-plugin has a quick start.
Then: mvn clean javafx:run
No need to tweak your JVM install, the maven downloads everything you need, including the platform binaries.