private void initTimer() {
actionListener = new ActionListener() {
public void actionPerformed(ActionEvent e) { }
};
timer = new javax.swing.Timer(1000, actionListener);
timer.start();
}
actionListener = new ActionListener() {
public void actionPerformed(ActionEvent e) { }
};
timer = new javax.swing.Timer(1000, actionListener);
timer.start();
}
让它动态更新就有点晕了,自己蛮写了个窗口显示不出来了:(