如何在界面上点击按钮中止当前所有线程??

如题,程序通过在界面按钮一次提交多个线程,如何通过另一个按钮获取到当前所有线程并全部都中止?
代码如下:

public action(){
Thread1 thread1 = new Thread1();
thread1.start();

    XXXUtils.threadList.add(thread1);

}

class Thread1 extends Thread{
void run(){
while(!exit){
try{
Runnable1 runable = new Runnable1();
Thread thread = new Thread(runable);
thread.setDaemon(true);
thread.start();
XXXUtils.threadList.add(thread);

                sleep(5*1000)
        }catch(InterruptedException e){
               break;
            }

}
}

//中断方法
pulic action(){
exit = true;

 for(XXXUtils.threadList){
          XXXUtils.threadList.get(i).interrupt();
 }

 for(XXXUtils.threadList){
      XXXUtils.threadList.remove(i)
 }

}

//全局变量
class XXXUtils{
public static List threadList = new ArrayList();
}

触发中断操作时获取到两个线程,能正常执行到stop,但后台能看到线程并未中止

求大神帮忙看看

写一个List 来保存所有的县城,遍历停止。

如图,,,恩 没图 哈哈

http://www.cnblogs.com/liangqiyuan/p/5664865.html 看一下 就是楼上说的遍历