changeset 26:3571cd24829e

Fix regression in showing certificate info dialogs 2010-10-28 Omair Majid <omajid@redhat.com> * netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java (showMoreInfoDialog): Make dialog modal. (showCertInfoDialog): Likewise. (showSingleCertInfoDialog): Likewise. (initDialog): Use setModality instead of setModal.
author Omair Majid <omajid@redhat.com>
date Thu, 28 Oct 2010 16:18:36 -0400
parents 5566a5487109
children 499642ab12a6
files ChangeLog netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java
diffstat 2 files changed, 12 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Wed Oct 27 15:55:55 2010 -0700
+++ b/ChangeLog	Thu Oct 28 16:18:36 2010 -0400
@@ -1,3 +1,11 @@
+2010-10-28  Omair Majid  <omajid@redhat.com>
+
+	* 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 <dbhole@redhat.com>
 
 	* plugin/icedteanp/IcedTeaNPPlugin.cc (plugin_create_applet_tag): Escape
--- a/netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java	Wed Oct 27 15:55:55 2010 -0700
+++ b/netx/net/sourceforge/jnlp/security/SecurityWarningDialog.java	Thu Oct 28 16:18:36 2010 -0400
@@ -167,6 +167,7 @@
                 SecurityWarningDialog dialog =
                         new SecurityWarningDialog(DialogType.MORE_INFO, null, null,
                         jarSigner);
+                dialog.setModalityType(ModalityType.APPLICATION_MODAL);
                 dialog.setVisible(true);
                 dialog.dispose();
         }
@@ -181,6 +182,7 @@
                 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 @@
                         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 @@
                         dialogTitle = "Security Warning";
 
                 setTitle(dialogTitle);
-                setModal(false);
+                setModalityType(ModalityType.MODELESS);
 
                 setDefaultCloseOperation(DISPOSE_ON_CLOSE);