java.lang.Object
javafx.application.Application
view.BookScrabbleApplication
public class BookScrabbleApplication
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 javafx.stage.StageThe getPrimaryStage function returns the primary stage of the application.static voidThe main function is the entry point of a JavaFX application.voidstart(javafx.stage.Stage stage) The start function is the main function of the program.Methods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Constructor Details
-
BookScrabbleApplication
public BookScrabbleApplication()
-
-
Method Details
-
start
The start function is the main function of the program. It loads all the FXML files and sets up their controllers, as well as setting up a ViewModel for each controller.- Specified by:
startin classjavafx.application.Application- Parameters:
stage- stage Set the title of the window- Throws:
IOException
-
getPrimaryStage
public static javafx.stage.Stage getPrimaryStage()The getPrimaryStage function returns the primary stage of the application.- Returns:
- The primaryStage object
-
main
The main function is the entry point of a JavaFX application. It creates an instance of the Application class and calls its start method, which then calls the init and stop methods. The main function also passes any command line arguments to this Application object via its init method's parameters.- Parameters:
args- args Pass arguments to the application
-