Class Main

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class Main extends JFrame
Serves as the primary entry point and main window controller for the POS system. This class handles the initial database connection, configures global UI scaling, and manages the central CardLayout to navigate between different application views (Home, Inventory, Menu, Sales, and Reports). * @author Team 60
See Also:
  • Field Details

  • Constructor Details

    • Main

      public Main()
      Initializes the main application frame, establishes the persistent database connection, and sets up the primary navigation sidebar and content panels. If the database connection fails during initialization, the application will display an error and terminate.
  • Method Details

    • setUIFont

      public static void setUIFont(FontUIResource f)
    • main

      public static void main(String[] args)
      The standard main method that launches the application. It applies global font scaling and system look-and-feel before initiating the database connection and displaying the login interface. * @param args Command line arguments (not used).