Class GovProFx

java.lang.Object
javafx.application.Application
GovProFx

public class GovProFx extends javafx.application.Application
The GovProFx class represents the main JavaFX application of the GovPro Budget System.

The application provides a graphical user interface for:

  • Viewing government budget data
  • Editing budget entries
  • Statistical analysis with charts
  • Budget forecasting and predictions
  • Percentage calculations
  • AI-powered citizen assistance

JavaFX components such as TableView, PieChart, ProgressBar, and multiple dialog windows are used. Audio feedback is also included to enhance user interaction.

Version:
1.0
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Model class representing a single budget record.

    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
    javafx.collections.ObservableList<GovProFx.BudgetEntry>
    Returns the complete list of budget data.
    static void
    main(String[] args)
    Launches the GovPro Budget System application.
    protected void
    Displays a dialog window that allows the user to modify existing budget entries.
    protected void
    showMainApp(javafx.stage.Stage primaryStage)
    Builds and displays the main user interface of the application.
    void
    start(javafx.stage.Stage primaryStage)
    Entry point of the JavaFX application.
    void
    start(javafx.stage.Stage primaryStage, boolean skipSplash)
    Overloaded start method mainly used for testing.

    Methods inherited from class javafx.application.Application

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

    Methods inherited from class Object

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

    • GovProFx

      public GovProFx()
  • Method Details

    • start

      public void start(javafx.stage.Stage primaryStage)
      Entry point of the JavaFX application.

      Displays a splash screen before loading the main UI.

      Specified by:
      start in class javafx.application.Application
      Parameters:
      primaryStage - the primary application stage
    • start

      public void start(javafx.stage.Stage primaryStage, boolean skipSplash)
      Overloaded start method mainly used for testing.
      Parameters:
      primaryStage - the main application stage
      skipSplash - if true, skips the splash screen and loads the main UI directly
    • showMainApp

      protected void showMainApp(javafx.stage.Stage primaryStage)
      Builds and displays the main user interface of the application.

      Initializes menus, tables, dialogs, and sound effects.

      Parameters:
      primaryStage - the primary application stage
    • showAmendDialog

      protected void showAmendDialog()
      Displays a dialog window that allows the user to modify existing budget entries.

      The selected entry is updated in real time within the table.

    • getMasterData

      public javafx.collections.ObservableList<GovProFx.BudgetEntry> getMasterData()
      Returns the complete list of budget data.
      Returns:
      an ObservableList of GovProFx.BudgetEntry
    • main

      public static void main(String[] args)
      Launches the GovPro Budget System application.
      Parameters:
      args - command-line arguments