Search:

Type: Posts; User: The_Mexican

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    2,226

    Re: Updating timer

    I wasn't sure how to use a swing timer so, as you can see, I set it up so that I can call .getElapsedTime on anything that is able to 'start' such as the variable s in the program. It should work...
  2. Replies
    10
    Views
    2,226

    Re: Updating timer

    Okay, here is the shortest possible program that I could make that still demonstrates my problem while being runnable:


    import java.awt.Container;
    import java.awt.event.ActionEvent;
    import...
  3. Replies
    10
    Views
    2,226

    Re: Updating timer

    I did this and now it just goes into the while loop once the timer is started and is stuck there forever, you can't click any buttons and the timer isn't even updating anyway. :(
  4. Replies
    10
    Views
    2,226

    Re: Updating timer

    Ya, I realize that I am doing this, but my question is how do it get so that when you click the button the time in the text box updates consistently as the timer continues.
  5. Replies
    10
    Views
    2,226

    Updating timer

    Hi, I'm having trouble getting my timer to be continuously updating. Once I click the button to start the timer it just shows 0. However, it shows the correct time after you finish.


    public long...
Results 1 to 5 of 5