-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
fx2.0
At the moment the only way to instantiate a JavaFX-Control in Swing is by using PlatformImpl.startup(); and Launcher.launch(). Launcher.launch() is not suitable for our application and PlattformImpl.startup() is a com.... class and not even in the official repository for JavaFX.
Platform.runLater() should be the way to put JavaFX-Controls in Swing. This method works perfectly as soon as you called PlatformImpl.startup() once. If you dont call the IMPL-method, Platform.runLater() throws a Toolkit not initialized message.
We would like to see this Toolkit initialization problem fixed, so we can work with Platform.runLater() onyl and dont need these workarounds.
Platform.runLater() should be the way to put JavaFX-Controls in Swing. This method works perfectly as soon as you called PlatformImpl.startup() once. If you dont call the IMPL-method, Platform.runLater() throws a Toolkit not initialized message.
We would like to see this Toolkit initialization problem fixed, so we can work with Platform.runLater() onyl and dont need these workarounds.
- duplicates
-
JDK-8101052 Swing interop: app should not need to explicitly initialize the FX runtime
-
- Resolved
-