Package com.clowtown.mealplanner.datamodel.menuitem

Examples of com.clowtown.mealplanner.datamodel.menuitem.MenuItemModel


    if (generateButton == null) {
      generateButton = new JButton();
      generateButton.setText("Generate Menu");
      generateButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          MenuItemModel m = MenuItemModel.getModel();
          for(int i=0;m.getRowCount()>0;){
            m.removeRow(i);
          }
          MenuMethod.reset();
          Date date = new Date();
          while(MenuMethod.dishesSelected < 5){
            MenuItemListWrapper dish = MenuMethod.getNextDish(date);
            m.addRow(dish.getArray());
          }
        }
      });
    }
    return generateButton;
View Full Code Here

TOP

Related Classes of com.clowtown.mealplanner.datamodel.menuitem.MenuItemModel

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.