* About dialog - making it modal.

This commit is contained in:
LevelX2 2014-01-30 08:17:36 +01:00
parent 4ab572bd0e
commit c3e48a0117
2 changed files with 8 additions and 1 deletions

View file

@ -896,6 +896,13 @@ public class MageFrame extends javax.swing.JFrame implements MageClient {
}//GEN-LAST:event_btnConnectActionPerformed
public void btnAboutActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnAboutActionPerformed
JInternalFrame[] windows = desktopPane.getAllFramesInLayer(JLayeredPane.POPUP_LAYER);
for (JInternalFrame window : windows) {
if (window instanceof AboutDialog) {
// don't open the window twice.
return;
}
}
AboutDialog aboutDialog = new AboutDialog();
desktopPane.add(aboutDialog, JLayeredPane.POPUP_LAYER);
aboutDialog.showDialog(version);

View file

@ -48,7 +48,7 @@ public class AboutDialog extends MageDialog {
public AboutDialog() {
this.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
initComponents();
// this.modal = false;
this.modal = true;
}
public void showDialog(MageVersion version) {