I've got an extensive Java (JDK 20) Swing project in the NetBeans IDE that I'd like to add JavaFX 20 to. Specifically I want to use a JFXPanel in a Swing JDialog form.
I've tried adding the JFX library jar files to my project library classpath, and the result appears to build OK. But when I run it, I get this error message:
WARNING: Unsupported JavaFX configuration: classes were loaded from 'unnamed module @36d4b5c' Graphics Device initialization failed for : es2, sw
Does anyone know how to do this correctly?