Search:

Type: Posts; User: Norm

Search: Search took 0.10 seconds.

  1. Replies
    13
    Views
    7,639

    Re: Structure of simple POS system

    One suggestion: Java naming conventions: Leading letter of name is uppercase for classes and lowercase for variables.
  2. Replies
    13
    Views
    7,639

    Re: Structure of simple POS system

    Sorry, I don't do much GUI with JTables.
  3. Replies
    13
    Views
    7,639

    Re: Structure of simple POS system

    With a class, you'd put those three items: ID, name and price in one object.
    You could have a constructor that takes all three to build an object.

    Then you'd want to put the objects in a...
  4. Replies
    13
    Views
    7,639

    Re: Structure of simple POS system

    I thought there were 2 items. I'm confused why you mentioned the 2 dim array.
    What data type is an "item"?
  5. Replies
    13
    Views
    7,639

    Re: Structure of simple POS system

    No. It will be better if you make a class to hold the data. Parallel/2D arrays can be an update problem.
    A class will get you lots more flexibility. One is the typing of the class object when you...
Results 1 to 5 of 5