Author: nkinder
Update of /cvs/dirsec/console/src/com/netscape/management/client/security
In directory
cvs01.phx2.fedoraproject.org:/tmp/cvs-serv18942/src/com/netscape/management/client/security
Modified Files:
PromptForTrustDialog.java
Log Message:
Bug 654990 - Certificate prompt window does not autosize
The JTextArea that we use in the dialog that prompts for certificate trust is
unable to determine it's proper preferred size since it is created with no rows
and no columns. This requires us to call pack() twice before it can get it's
proper preferred size. This is detailed in
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4446522.
Index: PromptForTrustDialog.java
===================================================================
RCS file:
/cvs/dirsec/console/src/com/netscape/management/client/security/PromptForTrustDialog.java,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -r1.1.1.1 -r1.2
--- PromptForTrustDialog.java 18 Jul 2005 00:34:17 -0000 1.1.1.1
+++ PromptForTrustDialog.java 21 Feb 2011 20:58:01 -0000 1.2
@@ -87,6 +87,10 @@
if (parent == null) {
ModalDialogUtil.setCenteredDialog(this);
}
+ // We need to call pack() twice to get the JTextArea we use to display at
+ // the right size. See
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4446522
+ // for more details.
+ pack();
pack();
}