Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8100768

Implementing JavaFX Controls in Swing with Platform.runLater() only

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • fx2.0
    • javafx

      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.

            kcr Kevin Rushforth
            mweidemanjfx Matthias Weidemann (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: