Results 1 to 3 of 3
Thread: GUI question PLEASE HELP
- 05-22-2011, 05:51 PM #1
Member
- Join Date
- May 2010
- Posts
- 5
- Rep Power
- 0
GUI question PLEASE HELP
Hi everyone,
I posted this with another heading but only got one reply.
I am trying to do my assignment.
It requires me to write a program for a warehouse.
Below are the details
The program is to be menu based and is to allow options for adding, viewing and finding customer, product and order information, and creating reports. Customer details, product details and order details are to be stored permanently in binary files. This program will be expanded at a later date to allow for administration of payments and maintenance of products, so it has to be designed with re-usability in mind.
I was unable to attend class for 2 weeks so Ive completely missed out on the GUI sessions. I only know TUI... and not even that well.
Can anyone tell me what classes I'm supposed to use? Is it just like customer, product, order, orderGUI, orderGUIStart like a TUI version or are the clases like integrated into one big class? Please list the classes I should use
Thanks in advance
-
In the future, it would be best to respond to that reply and start a conversation if you're still stuck or are unclear about something someone posts.
OK.The program is to be menu based and is to allow options for adding, viewing and finding customer, product and order information, and creating reports. Customer details, product details and order details are to be stored permanently in binary files. This program will be expanded at a later date to allow for administration of payments and maintenance of products, so it has to be designed with re-usability in mind.
This suggests you might want to schedule some sessions with your teacher/instructor because you're likely going to need help to catch up, more help than we are able to offer here.I was unable to attend class for 2 weeks so Ive completely missed out on the GUI sessions. I only know TUI... and not even that well.
We can give suggestions, sure. First and foremost, no, do not integrate all into one big god-class as that will make it very difficult if not impossible to upgrade and debug.Can anyone tell me what classes I'm supposed to use? Is it just like customer, product, order, orderGUI, orderGUIStart like a TUI version or are the clases like integrated into one big class? Please list the classes I should use
First off, non-GUI classes:
- I agree with you, you should have Customer, Product, Order. They will likely need to be serializable so that their information can be stored in binary form.
- Perhaps you need ProductCollection or something similar to hold a collection of Products that the Customer can choose from. Though perhaps just having an ArrayList<Product> in the Store class will suffice for this.
- Perhaps Store to hold a collection of Customers, an inventory of Products, to hold the Product collection,.. I'm not sure about this one though.
- Some type of IO class to allow reading and write the Customer, Product, and Order information to and from their respective files. You could separate this out into three classes, CustomerIO, OrderIO, and ProductIO, up to you.
Then some GUI classes:
- Yep OrderGUI would be useful. I would have this class create a JPanel so that later you can decide if you want to display it as a dialog or as part of the main GUI.
- StoreGUI perhaps as the main GUI
- 05-22-2011, 06:40 PM #3
Member
- Join Date
- May 2010
- Posts
- 5
- Rep Power
- 0
Similar Threads
-
Question concerning question marks and colons
By jim01 in forum New To JavaReplies: 17Last Post: 01-14-2011, 12:05 AM -
Question mark colon operator question
By orchid in forum Advanced JavaReplies: 9Last Post: 12-19-2010, 08:49 AM -
Do while question
By felito in forum New To JavaReplies: 14Last Post: 11-10-2010, 07:46 PM -
Question
By ayoood in forum New To JavaReplies: 16Last Post: 05-21-2008, 02:23 PM -
JSP Question
By maheshkumarjava in forum JavaServer Pages (JSP) and JSTLReplies: 1Last Post: 03-29-2008, 10:51 AM


LinkBack URL
About LinkBacks
Reply With Quote

Bookmarks