Package view

Class BookScrabbleApplication

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
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static javafx.stage.Stage
    The getPrimaryStage function returns the primary stage of the application.
    static void
    main(String[] args)
    The main function is the entry point of a JavaFX application.
    void
    start(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

    Methods inherited from class java.lang.Object

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

    • BookScrabbleApplication

      public BookScrabbleApplication()
  • Method Details

    • start

      public void start(javafx.stage.Stage stage) throws IOException
      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:
      start in class javafx.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

      public static void main(String[] args)
      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