Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // the thread which will re-enable the users after 2 seconds
- Thread reEnableThread = new Thread(new Runnable() {
- @Override
- public void run()
- {
- try
- {
- Thread.sleep(2000); // reenable labels
- while(_penalties.empty() == false)
- {
- _penalties.peek().setForeground(Color.GREEN);
- _penalties.pop();
- }
- }
- catch (InterruptedException e)
- {
- }
- }
- });
- reEnableThread.start();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement