public void mainMenu() {

    orderobjects.readOrders(orders);
    orderobjects.productsOfOrder(orders);
    // Menu Start
    prepareGUI();
    showMainEvent();
  }
 @Override
 public void actionPerformed(ActionEvent ae) {
   ViewingOrderDetails ViewOrders1 = new ViewingOrderDetails();
   UpdateOrderStatus Update1 = new UpdateOrderStatus();
   String command = ae.getActionCommand();
   switch (command) {
     case "View":
       mainFrame.dispose();
       ViewOrders1.orderDetails();
       break;
     case "Update":
       mainFrame.dispose();
       Update1.orderUpdate();
       break;
     case "AddDel":
       mainFrame.dispose();
       prepareGUI();
       showAddStockEvent();
       break;
     case "backToMain":
       mainFrame.dispose();
       prepareGUI();
       showMainEvent();
       break;
     case "submitAddStock":
       mainFrame.dispose();
       String productIDInput = productID.getText();
       String productQuantityInput = productQuantity.getText();
       int stockQTYint = Integer.parseInt(productQuantityInput);
       OrderObjects.addStock(productIDInput, stockQTYint);
       mainFrame.dispose();
       prepareGUI();
       showMainEvent();
       break;
   }
 }