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

[Application] FX cannot be only initialized

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 7u45
    • javafx
    • None

      Application lifecycle and JavaFX are tied. There is no easy way to only initiate FX.

      In an OSGi environment this can be a problem because each bundle has its own lifecycle. So, there is no direct way for a bundle to know whether FX is initialized or not.

      The most simple thing would be to separate FX initialization (which could be performed by an early executed bundle - or maybe Java command line arg) and other bundles which could freely create stages (without having to deal with FX initialization).

      Could be good to initialize FX via something like Platform.init(args) or/and to have a command line argument to ask so such as -Dfxinit

            kcr Kevin Rushforth
            jclementjfx Jean-Philippe CLEMENT (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: