How do I make the program wait for n seconds then continue. I have searched this many times and the techniques only work in the main method. I need mine to work in GUIs. Very simple terms please, I'm very new to this.
Printable View
How do I make the program wait for n seconds then continue. I have searched this many times and the techniques only work in the main method. I need mine to work in GUIs. Very simple terms please, I'm very new to this.
Check out javax.swing.Timer.
How can I use that to do it?
What have you tried? Did you read the tutorial that fast?
How to Use Swing Timers (The Java™ Tutorials > Creating a GUI With JFC/Swing > Using Other Swing Features)
Think I got it now. I did not read the official tutorial but I used them a bit in my animation experimentation. Thanks.