setAutoTimer(check.isSelected());
Timer t = getTimer(); if (t != null) { if (check.isSelected()) { t.restart(); } else { t.stop(); } }
                        public void actionPerformed(ActionEvent ae) {                            JCheckBox check = (JCheckBox)ae.getSource();                            setAutoTimer(check.isSelected());                        }