java.lang.Object
javafx.application.Application
edu.ntnu.idatt2001.paths.views.App
public class App
extends javafx.application.Application
The class App which starts the application window.
- Version:
- 0.2 - 22.04.2021
- Author:
- Carl G.
-
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
changeRootPane
(javafx.scene.layout.Pane pane) Set the scene of the applicationstatic javafx.stage.Stage
getStage()
Get the stage of the applicationstatic void
The entry point of application.void
start
(javafx.stage.Stage startStage) Show the first stage of the applicationMethods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Constructor Details
-
App
public App()
-
-
Method Details
-
main
The entry point of application.- Parameters:
args
- the input arguments
-
start
Show the first stage of the application- Specified by:
start
in classjavafx.application.Application
- Parameters:
startStage
- stage to add the first scene to- Throws:
Exception
- thrown if application window could not be opened.
-
getStage
public static javafx.stage.Stage getStage()Get the stage of the application- Returns:
- Stage - the application stage
-
changeRootPane
public static void changeRootPane(javafx.scene.layout.Pane pane) Set the scene of the application- Parameters:
pane
- Pane - the pane to set as the scene
-