Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8099513 Application life-cyle model and implementation
  3. JDK-8100315

Move the launch method to the Application class and deprecate the Launcher class

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Fixed
    • Icon: P2 P2
    • fx2.0
    • fx2.0
    • javafx

      To avoid application developers having to import a second class just to launch their program in standalone mode (when running from an IDE), we should move the launch method from the Launcher class to the Application class.

      We will then deprecate and hide (via treatasprivate) the Launcher class. We will remove Launcher in a subsequent beta refresh.

      Additionally, we will add a variant of launch() that doesn't take the application class, but instead figures it out by walking up the call stack looking for a class that extends Application.

            kcr Kevin Rushforth
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported: