close

Timer timer = new Timer(30000, new ActionListenerTimer());

private void exBegin() {

    timer.start();
}

 

private void exEnd() {

    timer.stop();
}

 

class ActionListenerTimerBackup implements ActionListener {
    public void actionPerformed(ActionEvent e) {

        ...

    }

}

全站熱搜
創作者介紹
創作者 fabch2 的頭像
fabch2

小刻家

fabch2 發表在 痞客邦 留言(0) 人氣()