Search:

Type: Posts; User: KevinWorkman

Search: Search took 0.09 seconds.

  1. Replies
    10
    Views
    2,223

    Re: Updating timer

    If you want something to continuously happen, then that's what a Swing Timer is for. How would it not be any different? You don't have any code here that would happen continuously, so what do you...
  2. Replies
    10
    Views
    2,223

    Re: Updating timer

    I appreciate the effort, but that's still not an SSCCE. For example, what is GameClient2 doing? And where is your Timer code?

    I predict that you want to put the textField2.setText() line inside a...
  3. Replies
    10
    Views
    2,223

    Re: Updating timer

    Did you put that in another Thread, or are you running that on the EDT? We can't really comment on your code unless you post it as an SSCCE (that's a link).
  4. Replies
    10
    Views
    2,223

    Re: Updating timer

    You could also simply use an actual Timer, calling its start and stop functions when appropriate. Which approach is best is up to you. Google is your friend.
Results 1 to 4 of 4