changeset 761:c43d49d0db97

SecurityDialog centers itself before becoming visible * netx/net/sourceforge/jnlp/security/SecurityDialog.java: (initDialog) centerDialog called in init rather than on windowOpened event
author Andrew Azores <aazores@redhat.com>
date Fri, 11 Oct 2013 10:39:07 -0400
parents 020590f4872d
children 29c1c1f92e09
files ChangeLog netx/net/sourceforge/jnlp/security/SecurityDialog.java
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Thu Sep 26 09:36:53 2013 +0200
+++ b/ChangeLog	Fri Oct 11 10:39:07 2013 -0400
@@ -1,3 +1,8 @@
+2013-10-11  Andrew Azores  <aazores@redhat.com>
+
+	* netx/net/sourceforge/jnlp/security/SecurityDialog.java: (initDialog)
+	centerDialog called in init rather than on windowOpened event
+
 2013-09-25  Andrew Azores  <aazores@redhat.com>
 
 	* Makefile.am: clean up summary_unit.txt and summary_reproducers.txt for
--- a/netx/net/sourceforge/jnlp/security/SecurityDialog.java	Thu Sep 26 09:36:53 2013 +0200
+++ b/netx/net/sourceforge/jnlp/security/SecurityDialog.java	Fri Oct 11 10:39:07 2013 -0400
@@ -244,6 +244,7 @@
         installPanel();
 
         pack();
+        centerDialog(this);
 
         WindowAdapter adapter = new WindowAdapter() {
             private boolean gotFocus = false;
@@ -262,14 +263,12 @@
                 if (e.getSource() instanceof SecurityDialog) {
                     SecurityDialog dialog = (SecurityDialog) e.getSource();
                     dialog.setResizable(true);
-                    centerDialog(dialog);
                     dialog.setValue(null);
                 }
             }
         };
         addWindowListener(adapter);
         addWindowFocusListener(adapter);
-
     }
 
     public AccessType getAccessType() {