How can I set a cancel button in a Swing JDialog, i.e. a button whose action is performed automatically if the user presses the “Cancel� key on the keyboard? The counterpart is ...
JDialog