Results 1 to 3 of 3
  1. #1
    shona is offline Member
    Join Date
    May 2010
    Posts
    5
    Rep Power
    0

    Default 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

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,315
    Blog Entries
    1
    Rep Power
    26

    Default

    Quote Originally Posted by shona View Post
    I posted this with another heading but only got one reply.
    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.


    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.
    OK.


    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.
    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.


    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
    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.

    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

  3. #3
    shona is offline Member
    Join Date
    May 2010
    Posts
    5
    Rep Power
    0

Similar Threads

  1. Question concerning question marks and colons
    By jim01 in forum New To Java
    Replies: 17
    Last Post: 01-14-2011, 01:05 AM
  2. Question mark colon operator question
    By orchid in forum Advanced Java
    Replies: 9
    Last Post: 12-19-2010, 09:49 AM
  3. Do while question
    By felito in forum New To Java
    Replies: 14
    Last Post: 11-10-2010, 08:46 PM
  4. Question
    By ayoood in forum New To Java
    Replies: 16
    Last Post: 05-21-2008, 03:23 PM
  5. JSP Question
    By maheshkumarjava in forum JavaServer Pages (JSP) and JSTL
    Replies: 1
    Last Post: 03-29-2008, 11:51 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •