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 -
Method Summary
Modifier and TypeMethodDescriptionstatic FXManifestCheck if a new version is available and return the manifest for the new version or null if no update.voidinit()Initialize the UI Provider by looking for an UIProvider inside the launcher or fallback to the default UI.static voidvoidstart(javafx.stage.Stage primaryStage) voidstop()Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet
-
Constructor Details
-
Launcher
public Launcher()
-
-
Method Details
-
checkForUpdate
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
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:
initin classjavafx.application.Application- Throws:
Exception
-
start
- Specified by:
startin classjavafx.application.Application- Throws:
Exception
-
main
-
stop
- Overrides:
stopin classjavafx.application.Application- Throws:
Exception
-