mirror of
https://github.com/magefree/mage.git
synced 2025-12-25 04:52:07 -08:00
* About dialog - making it modal.
This commit is contained in:
parent
4ab572bd0e
commit
c3e48a0117
2 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue