Class MyApp

java.lang.Object
javafx.application.Application
no.ntnu.idatt1002.demo.view.MyApp

public class MyApp extends javafx.application.Application
This is the class that the main application is run from. When a user decides to run the application, this class calls on the start method which starts the 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 void
    main(String[] args)
    The main method that calls on the start method.
    void
    start(javafx.stage.Stage stage)
    The start method which is where the application is opened.

    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

    • MyApp

      public MyApp()
  • Method Details

    • start

      public void start(javafx.stage.Stage stage) throws IOException
      The start method which is where the application is opened.
      Specified by:
      start in class javafx.application.Application
      Parameters:
      stage - The stage or window at which the GUI is displayed.
      Throws:
      IOException - If an occurs loading the first view.
    • main

      public static void main(String[] args)
      The main method that calls on the start method.
      Parameters:
      args - String of arguments.