如何用多线程实现秒表计时器?多多指教  线程启动,休眠实现秒表启动,停止这些功能。谢谢

解决方案 »

  1.   

    import javax.swing.*
    Timer timer = new Timer(100, new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    ......             }
            });
      

  2.   

    import javax.swing.*
    Timer timer = new Timer(100, new ActionListener() {
                public void actionPerformed(ActionEvent evt) {
                    ......             }
            });