Class Main
java.lang.Object
javafx.application.Application
com.xavierloeraflores.inventorymanagement.Main
public class Main
extends javafx.application.Application
Main class which starts the application
- Author:
- xavierloeraflores
-
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
Main function of the main class which starts the application.static void
This functions adds sample data to the application so that it can be populated with data.void
start
(javafx.stage.Stage stage) Displays the Main.FXML screen to start the applicationMethods inherited from class javafx.application.Application
getHostServices, getParameters, getUserAgentStylesheet, init, launch, launch, notifyPreloader, setUserAgentStylesheet, stop
-
Constructor Details
-
Main
public Main()
-
-
Method Details
-
sampleData
public static void sampleData()This functions adds sample data to the application so that it can be populated with data. -
start
Displays the Main.FXML screen to start the application- Specified by:
start
in classjavafx.application.Application
- Throws:
Exception
-
main
Main function of the main class which starts the application. It can also populate the inventory with data by calling the sampleData() function.
-