Search:

Type: Posts; User: Norm

Search: Search took 0.15 seconds.

  1. Replies
    22
    Views
    4,698

    Re: Timer Countdown - Code Syntax

    The new statement creates a new object.
  2. Replies
    22
    Views
    4,698

    Re: Timer Countdown - Code Syntax

    Here is one of my print outs:

    Do understand what the value after the @ signifies and what it can be used for?
    It it the hashcode for the object. Each object has a unique value for its hashcode....
  3. Replies
    22
    Views
    4,698

    Re: Timer Countdown - Code Syntax

    Try debugging the code by adding println statements to print out the value of the timer variable.
    Print it out when it is created and print it out in the actionPerformed() method. The toString()...
  4. Replies
    22
    Views
    4,698

    Re: Timer Countdown - Code Syntax

    Sounds like there is more than one timer running. Each is updating the count down.
  5. Replies
    22
    Views
    4,698

    Re: Timer Countdown - Code Syntax

    Sorry, I don't have an interactive debugger.
    The code executes for me. Can you explain what the problem is and how it can be observed?
  6. Replies
    22
    Views
    4,698

    Re: Timer Countdown - Code Syntax

    Not a SMALL program and it has too many dependencies: images that make it hard to test. Why these images for the test ????

    What do you need to do to see the problem?
    I get a small rectangle with...
  7. Replies
    22
    Views
    4,698

    Re: Timer Countdown - Code Syntax

    Can you post the small, complete program for testing here on the forum?
  8. Replies
    22
    Views
    4,698

    Re: Timer Countdown - Code Syntax

    Can you make a small, complete program that compiles, executes and shows the problem?
  9. Replies
    22
    Views
    4,698

    Re: Timer Countdown - Code Syntax

    Build the value to be displayed in a String and if the value is < 10, concatenate a "0" in front of it.

    An easy way is to use the ternary operator that is like an inline method.
Results 1 to 9 of 9