How to stop a Thread
Posted on 2001-06-26
The stop() method is deprecated for a Thread, but I can't stop a Thread without using it.
thisBlinkLoading has the run() method with an endless loop that changes the colors of a Label in thisFrame. thisBlinkLoading was the argument to create runIt1=new Thread(thisBlinkLoading);
I want to understand how to trash the Thread, but the only thing that seems to work is to use the stop() method on it first. There must be another way if stop() is deprecated, but I can't figure it out.
This is just an exercise. The code has no value other than that.