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...
Type: Posts; User: KevinWorkman
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...
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...
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).
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.