Package pl.polsl.rtsa

Class App

java.lang.Object
javafx.application.Application
pl.polsl.rtsa.App

public class App extends javafx.application.Application
JavaFX application entry point for the JSignalAnalysis real-time FFT analyzer.

Loads the FXML-based UI, applies the dark theme stylesheet, and manages the application lifecycle (start → stop → JVM exit).

  • Nested Class Summary

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

    javafx.application.Application.Parameters
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    Reference to the main UI controller for lifecycle management.
    private static javafx.scene.Scene
    The primary scene shared across the application.

    Fields inherited from class javafx.application.Application

    STYLESHEET_CASPIAN, STYLESHEET_MODENA
  • Constructor Summary

    Constructors
    Constructor
    Description
    App()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Application entry point — delegates to
    invalid reference
    Application#launch()
    .
    void
    start(javafx.stage.Stage stage)
    Initialises the primary stage with the FXML layout and dark theme.
    void
    Gracefully shuts down the controller and forces JVM exit.

    Methods inherited from class javafx.application.Application

    getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet

    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
      The primary scene shared across the application.
    • controller

      private MainController controller
      Reference to the main UI controller for lifecycle management.
  • Constructor Details

    • App

      public App()
  • Method Details

    • start

      public void start(javafx.stage.Stage stage) throws IOException
      Initialises the primary stage with the FXML layout and dark theme.
      Specified by:
      start in class javafx.application.Application
      Parameters:
      stage - the primary stage provided by the JavaFX runtime
      Throws:
      IOException - if the FXML resource cannot be loaded
    • stop

      public void stop()
      Gracefully shuts down the controller and forces JVM exit.

      System.exit(0) is required because jSerialComm may leave non-daemon native threads alive after the JavaFX stage is closed.

      Overrides:
      stop in class javafx.application.Application
    • main

      public static void main(String[] args)
      Application entry point — delegates to
      invalid reference
      Application#launch()
      .
      Parameters:
      args - command-line arguments (not used)