Close
jGuru Forums
Posted By: chmur_bluck Posted On: Friday, April 4, 2003 01:38 AM
I have got a Thread (made from swing thread). In the run() method i create a frame with a button that has an "actionperformed" and I show this frame and I put a loop like " while(true){ Thread.currentTread.sleep(1000); System.out.println("bip"); } " But in the button action I try to kill this Thread. But, no one of the methods from Thread class "yield", "destroy", "interrupt" seems to work. QUESTION : ==> How can I do to kill a Thread when I have his name or when it is the current Thread.
Re: Kill a Thread
Posted By: Ranjit_Damodaran Posted On: Friday, April 4, 2003 03:27 AM