• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

pizza ordering system

 
matt Seidlitz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 260
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Perhaps the moderators should move this to the correct forum - it doesn´t sound like a game to me.
 
matt Seidlitz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
oops...sorry....I did say that is was my first post....
 
Henry Wong
author
Marshal
Pie
Posts: 21184
80
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
matt Seidlitz
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
but.but.you deleted all my code...
 
Henry Wong
author
Marshal
Pie
Posts: 21184
80
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic