Search:

Type: Posts; User: Norm

Search: Search took 0.08 seconds.

  1. Replies
    16
    Views
    1,629

    Re: Issues With Layout And Time Being Display

    By defining ONE class that has references to ALL the parts and data needed to display the clock.
    One of the fields in the class would be a reference to the text field.
    Having the data in separate...
  2. Replies
    16
    Views
    1,629

    Re: Issues With Layout And Time Being Display

    What are the 3 arraylists for? Could the data they contain be held in one class and instances of that class placed in a single arraylist?


    The posted code still is creating a new arraylist every...
  3. Replies
    16
    Views
    1,629

    Re: Issues With Layout And Time Being Display

    Create a class to hold all the data for a time display. Put instances of that class in a collection/list so it can be used to update the time and anything else about the display.
  4. Replies
    16
    Views
    1,629

    Re: Issues With Layout And Time Being Display

    This is strange. Why use an array here:

    clockDisplay = new JPanel[1];

    The lists need to be created BEFORE the action listener method is called so the new times can be saved in it.
    ...
  5. Replies
    16
    Views
    1,629

    Re: Issues With Layout And Time Being Display

    There needs to be a list of the labels to be updated. The current code has a single reference to a label to be updated.
  6. Replies
    16
    Views
    1,629

    Re: Issues With Layout And Time Being Display

    How are each of the clock's displays handled so that each can be updated?
    I expect to see a collection of some kind where the displays are saved so that the timer can go through the displays saved...
  7. Replies
    16
    Views
    1,629

    Re: Issues With Layout And Time Being Display

    Ok, no hurry. I'll wait.
  8. Replies
    16
    Views
    1,629

    Re: Issues With Layout And Time Being Display

    Do you have a main() method for testing the code?
Results 1 to 8 of 8