diff options
author | Omair Majid <[email protected]> | 2010-10-28 16:18:36 -0400 |
---|---|---|
committer | Omair Majid <[email protected]> | 2010-10-28 16:18:36 -0400 |
commit | c18badf11407f45220f65200094438295c846ca5 (patch) | |
tree | 4b7546ea01765297e0ff2d46bdc62e3ce04816f7 | |
parent | 8a0acd6ea99c258b491ddf6a02a5e536c846c355 (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.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java | 5 |
2 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,11 @@ +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. + 2010-10-27 Deepak Bhole <[email protected]> * plugin/icedteanp/IcedTeaNPPlugin.cc (plugin_create_applet_tag): Escape 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); |