/** Action listener method that reacts to the checkbox being clicked or button pushed */
  public void actionPerformed(ActionEvent e) {

    if (e.getSource() == stateCB) {
      if (currentPerson instanceof CustomerAgent) {
        CustomerAgent c = (CustomerAgent) currentPerson;
        c.setHungry(hunger);
        stateCB.setEnabled(false);
      }
    } else if (e.getSource() == changeOrder) {
      if (currentPerson instanceof CustomerAgent) {
        CustomerAgent c = (CustomerAgent) currentPerson;
        c.waiter.msgIWantToChangeOrder(c);
        // changeOrder.setEnabled(false);
      }
    } else if (e.getSource() == requestBreak) {
      if (currentPerson instanceof WaiterAgent) {
        WaiterAgent w = (WaiterAgent) currentPerson;
        w.requestBreak();
      }
    } else if (e.getSource() == addTable) {
      try {
        System.out.println("[Gautam] Add Table!");
        // String XPos = JOptionPane.showInputDialog("Please enter X Position: ");
        // String YPos = JOptionPane.showInputDialog("Please enter Y Position: ");
        // String size = JOptionPane.showInputDialog("Please enter Size: ");
        // restPanel.addTable(10, 5, 1);
        // restPanel.addTable(Integer.valueOf(YPos).intValue(), Integer.valueOf(XPos).intValue(),
        // Integer.valueOf(size).intValue());
        restPanel.addTable();
      } catch (Exception ex) {
        System.out.println("Unexpected exception caught in during setup:" + ex);
      }
    }
  }