News for hackers. Stuff that matters.
Re:JavaFX 19 by hackarama on Wednesday September 14, 2022 @08:35AM (#32836268)
Setting up the JavaFX development environment for anything post-JDK8 was incredibly difficult. I was recently tasked with creating an internal GUI application and re-visited JavaFX development after a few years' absence from the space.

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.

Re:JavaFX 19 by lokedhs on Wednesday September 14, 2022 @09:34AM (#32836953)
The amount of magic flags needed to get JavaFX working is ridiculous. I'm working on a Kotlin application with a JavaFX UI and I have to rely on Gradle to get it all working. Even then, when I wanted to get some wodgets from controlsfx working I had to add 14 new commandline options (various --add-opens options), none of which was properly documented anyhere.
Re:JavaFX 19 by cnr on Wednesday September 14, 2022 @09:23AM (#32836826)
Unfortunately the "magic green >>Build<<" button (at least for JDK11+ projects) is still missing :( Check: https://youtrack.jetbrains.com/issue/IDEA-20072
Re:JavaFX 19 by whartung on Wednesday September 14, 2022 @05:58PM (#32843997)
I don't think it's difficult at all. Not today, certainly.

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.