Esempio n. 1
0
 public void actionPerformed(ActionEvent e) {
   button.doClick();
 }
Esempio n. 2
0
 /**
  * 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();
 }