Reputation: 21
Is it possible to delay multiple parts of a thread with a gui? Like setting a JLabel
Upvotes: 1
Views: 66
Reputation: 421040
If you want to do something like "setting the text of a label after 3 seconds" you would have to create some timer and update the text of the label upon timeout.
Edit: Reading your previous question makes it slightly more clear.
You would have to use to what Howard tells you for each statement, or bundle all the to-be-delayed statements in the actionPerformed
method.
Upvotes: 2