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

Provide an official API to start the JavaFX platform

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 9
    • Component/s: javafx
    • Labels:

      Description

      At the moment the only way to start the JavaFX platform/toolkit/main-thread is to either have an Application instance around or to call into the internal API, PlatformImpl.start(Runnable).

      Providing an official API to start it would be very useful, as it would allow to gain fine-grained control of the JavaFX lifecycle. Having an Application instance around has drawbacks as, for example, Application.launch() will halt the thread it was invoked on. And calling the internal API isn't optimal for (hopefully) obvious reasons.

      For example applications could decide to launch JavaFX dynamically if needed, as it is with migrating from one UI toolkit to another the case. The exact use-case is framework development with a framework that does not necessary have one main window, but can have multiple (or none). Having an official way to launch JavaFX without resorting to "hammering Application into the concept" or using the internal API would be great.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                kcr Kevin Rushforth
                Reporter:
                rzenzjfx Robert Zenz (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved:
                  Imported: