Did you try my original suggestion? Using Thread.sleep in this fashion means you are locking up the program for 5 seconds (the actionPerformed occurs in the Event Dispatch Thread (EDT) - and because...
Type: Posts; User: copeg
Did you try my original suggestion? Using Thread.sleep in this fashion means you are locking up the program for 5 seconds (the actionPerformed occurs in the Event Dispatch Thread (EDT) - and because...
You should initiate the text box prior to starting the TimeListener, otherwise nothing will happen until after you've listened for the specified time. So:
int a =...