Module fxlauncher
Package fxlauncher

Class Launcher

java.lang.Object
javafx.application.Application
fxlauncher.Launcher

public class Launcher extends javafx.application.Application
  • Nested Class Summary

    Nested classes/interfaces inherited from class javafx.application.Application

    javafx.application.Application.Parameters
  • Field Summary

    Fields inherited from class javafx.application.Application

    STYLESHEET_CASPIAN, STYLESHEET_MODENA
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static FXManifest
    Check if a new version is available and return the manifest for the new version or null if no update.
    void
    Initialize the UI Provider by looking for an UIProvider inside the launcher or fallback to the default UI.
    static void
    main(String[] args)
     
    void
    start(javafx.stage.Stage primaryStage)
     
    void
     

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Launcher

      public Launcher()
  • Method Details

    • checkForUpdate

      public static FXManifest checkForUpdate() throws IOException
      Check if a new version is available and return the manifest for the new version or null if no update.

      Note that updates will only be detected if the application was actually launched with FXLauncher.

      Returns:
      The manifest for the new version if available
      Throws:
      IOException
    • init

      public void init() throws Exception
      Initialize the UI Provider by looking for an UIProvider inside the launcher or fallback to the default UI.

      A custom implementation must be embedded inside the launcher jar, and /META-INF/services/fxlauncher.UIProvider must point to the new implementation class.

      You must do this manually/in your build right around the "embed manifest" step.

      Overrides:
      init in class javafx.application.Application
      Throws:
      Exception
    • start

      public void start(javafx.stage.Stage primaryStage) throws Exception
      Specified by:
      start in class javafx.application.Application
      Throws:
      Exception
    • main

      public static void main(String[] args)
    • stop

      public void stop() throws Exception
      Overrides:
      stop in class javafx.application.Application
      Throws:
      Exception