Exemple #1
0
 public void actionPerformed(ActionEvent e) {
   button.doClick();
 }
 /**
  * Automatically press the cancel button when this dialog has been escaped.
  *
  * @param escaped indicates if this dialog has been closed by pressing the ESC key
  */
 @Override
 protected void close(boolean escaped) {
   if (escaped) cancelButton.doClick();
 }