J
Jason Cavett
I'm trying to implement a status bar whose status is updated depending
on what the user is doing in the system. That is working well at this
point. However, I am now trying to implement a way that the status
bar resets itself after a certain amount of time (back to the "Ready"
status). So, it'll work something like this...
1. User Does Action
2. Status Bar Changes
3. Timer Thread Starts
4. When time has passed, status bar is reset.
5. If the user has done another task before the time has passed, the
time is reset back to its starting countdown value and the count down
starts again.
I am having a heck of time with part 5. I have created an inner class
(extends Thread) and I can't seem to find a way to check to see if the
thread is still sleeping and then reset that time back to the original
sleep time if it is.
Any help would be appreciated. Thanks.
on what the user is doing in the system. That is working well at this
point. However, I am now trying to implement a way that the status
bar resets itself after a certain amount of time (back to the "Ready"
status). So, it'll work something like this...
1. User Does Action
2. Status Bar Changes
3. Timer Thread Starts
4. When time has passed, status bar is reset.
5. If the user has done another task before the time has passed, the
time is reset back to its starting countdown value and the count down
starts again.
I am having a heck of time with part 5. I have created an inner class
(extends Thread) and I can't seem to find a way to check to see if the
thread is still sleeping and then reset that time back to the original
sleep time if it is.
Any help would be appreciated. Thanks.