I\'m trying to learn how to pause and resume a thread in java. I\'m using an Applet that implements Runnablehas 2 buttons \"Start\" and \"Stop\".>
Applet
implements Runnable
I think you have to synchronize on the thread in order to call wait and notify. Try to use
synchronized (th) { th.notify(); }
and the same with wait().
wait()