Class RecipeWindow

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

public class RecipeWindow extends JDialog
A modal dialog used to define and store ingredient recipes for menu items. This utility facilitates the mapping of inventory ingredients to specific products, calculating required quantities and updating the 'recipes' table. It ensures that the database reflects the exact resource requirements for every item sold in the POS system. * @author Team 60
See Also:
  • Constructor Details

    • RecipeWindow

      public RecipeWindow(Frame owner, int menuItemId, String itemName, Connection conn)
      Constructs the recipe configuration window for a specific menu item. * @param owner The parent Frame (MenuView) that triggered this dialog.
      Parameters:
      menuItemId - The unique identifier for the product being configured.
      itemName - The display name of the menu item.
      conn - The active database connection for batch-processing recipe entries.