Class Main

java.lang.Object
javafx.application.Application
application.Main

public class Main extends javafx.application.Application
Application entry point. Loads fonts and delegates the Stage to GameController.
  • 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 void
    main(String[] args)
    Program entry point.
    void
    start(javafx.stage.Stage primaryStage)
    Automatically called by JavaFX after launch().

    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

    • Main

      public Main()
  • Method Details

    • start

      public void start(javafx.stage.Stage primaryStage)
      Automatically called by JavaFX after launch(). Loads the Noto Sans Thai font and creates the GameController.
      Specified by:
      start in class javafx.application.Application
      Parameters:
      primaryStage - The primary Stage provided by JavaFX
    • main

      public static void main(String[] args)
      Program entry point. Calls the JavaFX launch method to start the application lifecycle.
      Parameters:
      args - Command-line arguments (unused)