I am currently trying to implement a first PoC for a plugin using the JavaFX WebView. I am trying to run this code on the newest JB JDK 11, because I need to use at least the OpenJFX 11 release. However, as soon as I try to execute something on the main JavaFX thread using Platform.runLater(...) (in this case, I'm initializing the WebView and the engine), I still get the following exception:
java.lang.IllegalStateException: Not on FX application thread; currentThread = JavaFX Application Thread
I am creating a new JFXPanel right before the call, so the toolkit is already initialized and calls to Platform.runLater() should run on the regular fx thread, right? I have no issues with the same code on the JB JDK 8 with OpenJFX 8.