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 ClassesModifier and TypeClassDescriptionstatic classModel 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 -
Method Summary
Modifier and TypeMethodDescriptionjavafx.collections.ObservableList<GovProFx.BudgetEntry> Returns the complete list of budget data.static voidLaunches the GovPro Budget System application.protected voidDisplays a dialog window that allows the user to modify existing budget entries.protected voidshowMainApp(javafx.stage.Stage primaryStage) Builds and displays the main user interface of the application.voidstart(javafx.stage.Stage primaryStage) Entry point of the JavaFX application.voidstart(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
-
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:
startin classjavafx.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 stageskipSplash- iftrue, 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
Returns the complete list of budget data.- Returns:
- an
ObservableListofGovProFx.BudgetEntry
-
main
Launches the GovPro Budget System application.- Parameters:
args- command-line arguments
-