[fixes #640] Dialogs should now closing with the [x] button in the corner. (and 'close' button. And ESC)

This commit is contained in:
Daniel_M_Williams 2020-05-02 11:15:46 -04:00
parent 1c7171eff2
commit d038b1b190

View File

@ -52,7 +52,6 @@ public class ComponentConfigDialog extends JDialog implements ComponentChangeLis
GUIUtil.rememberWindowPosition(this);
// overrides common defaults in 'GUIUTIL.setDisposableDialogOptions', above
setDefaultCloseOperation(JDialog.DO_NOTHING_ON_CLOSE);
addWindowListener(new WindowAdapter() {
/**
* Triggered by the 'Close' Button on the ConfigDialogs. AND Esc. AND the [x] button (on Windows)