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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    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 application

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

      public void start(javafx.stage.Stage stage) throws Exception
      Displays the Main.FXML screen to start the application
      Specified by:
      start in class javafx.application.Application
      Throws:
      Exception
    • main

      public static void main(String[] args)
      Main function of the main class which starts the application. It can also populate the inventory with data by calling the sampleData() function.