#57 Let the user close the getdown window on error, even when hideDecorations is set to true

This commit is contained in:
Réda Housni Alaoui
2016-06-09 00:51:05 +02:00
parent 3a4b4ae539
commit 8175064600
@@ -184,6 +184,19 @@ public class GetdownApp
System.exit(exitCode); System.exit(exitCode);
} }
} }
@Override
protected void fail(String message) {
// If the frame was set to be undecorated, make window decoration available
// to allow the user to close the window
if(_frame != null && _frame.isUndecorated()){
_frame.dispose();
_frame.setUndecorated(false);
showContainer();
}
super.fail(message);
}
protected JFrame _frame; protected JFrame _frame;
}; };
app.start(); app.start();