Class InventoryView

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class InventoryView extends JPanel
Provides a comprehensive dashboard for managing terminal inventory and stock levels. This class facilitates CRUD operations (Create, Read, Update, Delete) against the PostgreSQL backend and provides visual data analytics via JFreeChart to track low-stock items. * @author Team 60
See Also:
  • Constructor Details

    • InventoryView

      public InventoryView(Connection conn)
      Initializes the inventory management interface and establishes the dashboard layout. * @param conn The active SQL database connection used for inventory queries and updates.
  • Method Details

    • refreshChart

      public void refreshChart()
      Refreshes the visual low-stock alert chart based on current database quantities. Useful for providing real-time feedback after stock updates or shipment receptions.