Class MainApp
java.lang.Object
javafx.application.Application
id.klacak.bus_navigator.MainApp
public class MainApp
extends javafx.application.Application
JavaFX application entry point for the Bus Navigator route-finder interface.
-
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 TypeMethodDescriptionvoidinit()Loads the application's custom fonts before creating the interface.static voidLaunches the JavaFX application.voidLoads a view, connects its controller, and displays it in the primary stage.voidstart(javafx.stage.Stage stage) Opens the main view in the primary application window.Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Constructor Details
-
MainApp
public MainApp()Creates the Bus Navigator JavaFX application.
-
-
Method Details
-
init
-
start
public void start(javafx.stage.Stage stage) Opens the main view in the primary application window.- Specified by:
startin classjavafx.application.Application
-
showView
Loads a view, connects its controller, and displays it in the primary stage. -
main
Launches the JavaFX application.- Parameters:
args- command-line arguments passed to JavaFX
-