aspose file tools*
The moose likes Java in General and the fly likes pizza ordering system Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "pizza ordering system" Watch "pizza ordering system" New topic
Author

pizza ordering system

matt Seidlitz
Greenhorn

Joined: May 02, 2010
Posts: 5
question and code has been moved to appropriate section of forum

Hello! (picture of my GUI is included (at least I hope so...))

My first post...anyway I am working on an assignment for school. I am to use swing and design and implement a pizza ordering system. I find swing easy enough to handle, but I am having brain death issues how to handle displaying back the customers order with prices and displaying the total... this is how I want it to look

Your order.
3 Cokes $2.98
1 large peperoni pizza $9.99
w/ black olives $0.99

total $13.96


1. what is the best way to display something like this? JLabel? JTextBoxArea?

2. what is the best way to store this data (item, price, quantity)? an object array? arraylist?

3. how do I update my JLabel after a user adds something to the order?

I currently have 6 classes they are:

pizzaFront.java (JFrame info)
pizzaGUI.java (panel layout page)
pizza.java (pizza order page)
drinks.java (drinks order page)
specials.java (hotwings etc page)
order.java (the page that displays a list of selected items, their prices, and the total cost.)

If you want more code just ask, but here is order.java as I have it. I am starting off just trying to get a running total and will impliment more later. I only have the drinks.java ordering page done. All a person does is select the quantity wanted from the combobox.







[HENRY: Restored original question deleted by OP]
Mich Robinson
Ranch Hand

Joined: Jun 28, 2009
Posts: 250
    
    1
Perhaps the moderators should move this to the correct forum - it doesn´t sound like a game to me.


Arcade : Alien Swarm
Board : Chess - Checkers - Connect 4 - Othello
matt Seidlitz
Greenhorn

Joined: May 02, 2010
Posts: 5
oops...sorry....I did say that is was my first post....
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18836
    
  40

Please don't cross post -- it wastes people time and effort. Anyway, I trashed your other topic. And moved your old topic to the new topic's location.

And welcome to the ranch !!

Henry


Books: Java Threads, 3rd Edition, Jini in a Nutshell, and Java Gems (contributor)
matt Seidlitz
Greenhorn

Joined: May 02, 2010
Posts: 5
but.but.you deleted all my code...
Henry Wong
author
Sheriff

Joined: Sep 28, 2004
Posts: 18836
    
  40

matt Seidlitz wrote:but.but.you deleted all my code...




Sorry. Did not notice that you also deleted your post in this topic. I restored it (from the trashed topic) for you.

Henry
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: pizza ordering system