aboutsummaryrefslogtreecommitdiffstats
path: root/netx/net/sourceforge/jnlp
diff options
context:
space:
mode:
authorOmair Majid <[email protected]>2010-10-28 16:18:36 -0400
committerOmair Majid <[email protected]>2010-10-28 16:18:36 -0400
commitc18badf11407f45220f65200094438295c846ca5 (patch)
tree4b7546ea01765297e0ff2d46bdc62e3ce04816f7 /netx/net/sourceforge/jnlp
parent8a0acd6ea99c258b491ddf6a02a5e536c846c355 (diff)
Fix regression in showing certificate info dialogs
2010-10-28 Omair Majid <[email protected]> * netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java (showMoreInfoDialog): Make dialog modal. (showCertInfoDialog): Likewise. (showSingleCertInfoDialog): Likewise. (initDialog): Use setModality instead of setModal.
Diffstat (limited to 'netx/net/sourceforge/jnlp')
-rw-r--r--netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java5
1 files changed, 4 insertions, 1 deletions
diff --git a/netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java b/netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java
index 1937f1c..dc17174 100644
--- a/netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java
+++ b/netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java
@@ -167,6 +167,7 @@ public class SecurityWarningDialog extends JDialog {
SecurityWarningDialog dialog =
new SecurityWarningDialog(DialogType.MORE_INFO, null, null,
jarSigner);
+ dialog.setModalityType(ModalityType.APPLICATION_MODAL);
dialog.setVisible(true);
dialog.dispose();
}
@@ -181,6 +182,7 @@ public class SecurityWarningDialog extends JDialog {
SecurityWarningDialog dialog = new SecurityWarningDialog(DialogType.CERT_INFO,
null, null, jarSigner);
dialog.setLocationRelativeTo(parent);
+ dialog.setModalityType(ModalityType.APPLICATION_MODAL);
dialog.setVisible(true);
dialog.dispose();
}
@@ -195,6 +197,7 @@ public class SecurityWarningDialog extends JDialog {
JDialog parent) {
SecurityWarningDialog dialog = new SecurityWarningDialog(DialogType.SINGLE_CERT_INFO, c);
dialog.setLocationRelativeTo(parent);
+ dialog.setModalityType(ModalityType.APPLICATION_MODAL);
dialog.setVisible(true);
dialog.dispose();
}
@@ -219,7 +222,7 @@ public class SecurityWarningDialog extends JDialog {
dialogTitle = "Security Warning";
setTitle(dialogTitle);
- setModal(false);
+ setModalityType(ModalityType.MODELESS);
setDefaultCloseOperation(DISPOSE_ON_CLOSE);