Package com.clowtown.mealplanner.items

Examples of com.clowtown.mealplanner.items.MainDish


    try{
      reader = new BufferedReader(new FileReader(new File(FILENAME)));
     
      String line = reader.readLine();
      while(line != null){
        MainDish dish = new MainDish();
        dish.build(line);
        line = reader.readLine();
        ItemList.addDish(dish);
        DishItemModel.getModel().addRow(new DishItemListWrapper(),true);
      }
    }catch(Exception e){
View Full Code Here


public class PolicyTest extends TestCase {

  Item dish;
  protected void setUp() throws Exception {
    super.setUp();
    dish = new MainDish(new Category("Pasta"),
        "spaghetti",
        new PolicyEnum[]{Frequency.BIMONTHLY,Season.WINTER},true,new Date());
  }
View Full Code Here

      newDishButton = new JButton();
      newDishButton.setText("New");
      newDishButton.setIcon(new ImageIcon("D:/eclipse/plugins/org.eclipse.compare.examples.xml_3.1.100.v20060609/doc-html/addidmap.gif"));
      newDishButton.addActionListener(new java.awt.event.ActionListener() {
        public void actionPerformed(java.awt.event.ActionEvent e) {
          ItemList.addDish(new MainDish());
          DishItemModel.getModel().addRow(new DishItemListWrapper(),false);
        }
      });
    }
    return newDishButton;
View Full Code Here

TOP

Related Classes of com.clowtown.mealplanner.items.MainDish

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.