Class App

java.lang.Object
javafx.application.Application
proseccoCoding.TLN.App

public class App extends javafx.application.Application
JavaFX App
  • Nested Class Summary

    Nested classes/interfaces inherited from class javafx.application.Application

    javafx.application.Application.Parameters
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static javafx.scene.Scene
    App scene

    Fields inherited from class javafx.application.Application

    STYLESHEET_CASPIAN, STYLESHEET_MODENA
  • Constructor Summary

    Constructors
    Constructor
    Description
    App()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    private static javafx.scene.Parent
    Uses the given string to determine and locate the corresponding .fxml file in the resource folder
    static void
    main(String[] args)
    Starts the App by calling the launch method
    static void
    Changes the scene to the given one
    void
    start(javafx.stage.Stage stage)
     

    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
  • Field Details

    • scene

      private static javafx.scene.Scene scene
      App scene
  • Constructor Details

    • App

      public App()
  • Method Details

    • start

      public void start(javafx.stage.Stage stage) throws IOException
      Specified by:
      start in class javafx.application.Application
      Throws:
      IOException
    • setRoot

      public static void setRoot(String fxml) throws IOException
      Changes the scene to the given one
      Parameters:
      fxml -
      Throws:
      IOException
    • loadFXML

      private static javafx.scene.Parent loadFXML(String fxml) throws IOException
      Uses the given string to determine and locate the corresponding .fxml file in the resource folder
      Parameters:
      fxml -
      Returns:
      Parent object used to load the wanted .fxml file
      Throws:
      IOException
    • main

      public static void main(String[] args)
      Starts the App by calling the launch method
      Parameters:
      args -