Hello all,
I am writing a proof-of-concept class to determine how to pause and resume a
thread doing a cyclical process in Swing. The idea is to have an instance field called paused that the thread polls. When the field is true, thread process will call Object.wait() to pause. Then when the main proccess wants to resume, the paused field is set to false and an Object.notify() is called.
The thread process pauses just fine but when it comes to resuming, it never sees the notify() from the main process. Any help would be welcome. Below is my code.