void this_componentShown(ComponentEvent e) {
   cancelled = false;
   updateLabels();
   cancelButton.setVisible(false);
   timer.start();
   clockPanel.start();
 }
 void this_componentHidden(ComponentEvent e) {
   clockPanel.stop();
   timer.stop();
 }