aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Azores <[email protected]>2013-10-11 10:31:55 -0400
committerAndrew Azores <[email protected]>2013-10-11 10:31:55 -0400
commit76667d1d971e9fc9ac9840d64a38e7a06a6cfabb (patch)
tree7c58f05e2d2249bd7368e02f64f762ca68ec8e74
parent86a963d444af9480677e7f6413841f6a5061c233 (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--ChangeLog5
-rw-r--r--netx/net/sourceforge/jnlp/security/SecurityDialog.java3
2 files changed, 6 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index e761c4a..a35d4b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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() {