{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

PizzaOrderPortal - PizzaOrderPortal.java Authors Lewis and...

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

View Full Document Right Arrow Icon
//******************************************************************** // PizzaOrderPortal.java Authors: Lewis and Loftus // // Solution to Programming Project 9.11 // // Main program. Application used to take orders at a pizza // restaurant //******************************************************************** / import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.text.NumberFormat; i public class PizzaOrderPortal extends JFrame { JLabel grandTotalLabel; float grandTotal; //----------------------------------------------------------------- // Set up the main GUI //----------------------------------------------------------------- public PizzaOrderPortal() { super("Pizza Express"); // make the frame closeable setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //set up the grand total panel grandTotal = 0.0f; JPanel totalPanel = new JPanel(); totalPanel.add(new JLabel("GRAND TOTAL: ")); grandTotalLabel = new JLabel("$0.00"); totalPanel.add(grandTotalLabel); getContentPane().add(totalPanel, BorderLayout.SOUTH);
Background image of page 1

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

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

{[ snackBarMessage ]}

Page1 / 2

PizzaOrderPortal - PizzaOrderPortal.java Authors Lewis and...

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

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