SideOrderPanel -...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: //******************************************************************** // Authors: Lewis and Loftus // // Solution to Programming Project 9.11 //******************************************************************** import java.util.ArrayList; import javax.swing.*; import javax.swing.border.*; import java.awt.event.*; import java.awt.*; import java.text.NumberFormat; //******************************************************************** // Helper class for representing side orders //******************************************************************** class Side { static final String SIDE_TYPES = { "Cheese Bread", "Bread Sticks", "Buffalo Wings", "Caeser Salad", "Greek Salad", "Minestrone Soup", "Meatballs", "Spaghetti" }; static final float PRICE = 2.0f; int side; public String toString() { try { return SIDE_TYPES[side]; } catch (ArrayIndexOutOfBoundsException e) { return ""; } } } //******************************************************************** // Main panel for ordering sides. //******************************************************************** public class SideOrderPanel extends JPanel { JTextField beverageQuantityTextFields; JLabel numSidesLabel; JLabel totalPriceLabel;...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Page1 / 4

SideOrderPanel -...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online