You got lucky because the setText() method is Thread safe, but when dealing with the GUI, you don't want to make changes to it on a Thread other than the EDT. A Swing Timer would have made this a...
Type: Posts; User: KevinWorkman
You got lucky because the setText() method is Thread safe, but when dealing with the GUI, you don't want to make changes to it on a Thread other than the EDT. A Swing Timer would have made this a...
How to Use Swing Timers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Other Swing Features)