diff options
author | Andrew Azores <[email protected]> | 2013-10-11 10:31:55 -0400 |
---|---|---|
committer | Andrew Azores <[email protected]> | 2013-10-11 10:31:55 -0400 |
commit | 76667d1d971e9fc9ac9840d64a38e7a06a6cfabb (patch) | |
tree | 7c58f05e2d2249bd7368e02f64f762ca68ec8e74 | |
parent | 86a963d444af9480677e7f6413841f6a5061c233 (diff) |
SecurityDialog centers itself before becoming visible
* netx/net/sourceforge/jnlp/security/SecurityDialog.java: (initDialog)
centerDialog called in init rather than on windowOpened event
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | netx/net/sourceforge/jnlp/security/SecurityDialog.java | 3 |
2 files changed, 6 insertions, 2 deletions
@@ -1,3 +1,8 @@ +2013-10-11 Andrew Azores <[email protected]> + + * netx/net/sourceforge/jnlp/security/SecurityDialog.java: (initDialog) + centerDialog called in init rather than on windowOpened event + 2013-10-09 Omair Majid <[email protected]> * plugin/icedteanp/java/sun/applet/PluginProxySelector.java diff --git a/netx/net/sourceforge/jnlp/security/SecurityDialog.java b/netx/net/sourceforge/jnlp/security/SecurityDialog.java index 03f2225..25d8f10 100644 --- a/netx/net/sourceforge/jnlp/security/SecurityDialog.java +++ b/netx/net/sourceforge/jnlp/security/SecurityDialog.java @@ -245,6 +245,7 @@ public class SecurityDialog extends JDialog { installPanel(); pack(); + centerDialog(this); WindowAdapter adapter = new WindowAdapter() { private boolean gotFocus = false; @@ -263,14 +264,12 @@ public class SecurityDialog extends JDialog { 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() { |