AlaCarte - /A la Carte import import import i import...

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

View Full Document Right Arrow Icon
//A la Carte / import java.awt.*; import java.awt.event.*; import javax.swing.*; import javax.swing.event.*; i public class AlaCarte extends JFrame implements ActionListener { static String[] yourChoicesItems = {"Blueberry Muffin 1.45", "Strawberry Bagel 0.80", "Lite Yogurt 0.75", "Vanilla Ice Cream 2.75", "Hash Browns 2.50", "Toast 2.00", "French Fries 1.50", "Onion Soup 3.00", "Coffee 0.90", "Iced Tea 1.00", "Hot Chocolate 1.75"}; static double[] yourChoicesPrices = {1.45, 0.80, 0.75, 2.75, 2.50, 2.00, 1.50, 3.00, 0.90, 1.00, 1.75}; private JList yourChoices; private JTextArea bill; private Container pane; public AlaCarte() { super("Welcome to Java Kiosk"); //Get the content pane and set its background color //and layout manager. pane = getContentPane(); pane.setBackground(new Color(0, 200, 200)); pane.setLayout(new BorderLayout(5, 5)); //Create a label and place it at NORTH. Also //set the font of this label. JLabel yourChoicesJLabel = new JLabel("A LA CARTE MENU");
Background image of page 1

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

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

This note was uploaded on 06/17/2011 for the course COMP 2301 taught by Professor Staff during the Spring '10 term at Kennesaw.

Page1 / 3

AlaCarte - /A la Carte import import import i import...

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