Pack the authentication window just before showing it.

cusax-fix
Yana Stamcheva 16 years ago
parent a509c8291d
commit 53bc82647c

@ -82,7 +82,6 @@ public UserCredentials obtainCredentials(
isUserNameEditable,
icon);
loginWindow.pack();
loginWindow.setVisible(true);
if (!loginWindow.isCanceled())

@ -88,7 +88,6 @@ public UserCredentials obtainCredentials(
icon,
errorMessage);
loginWindow.pack();
loginWindow.setVisible(true);
if (!loginWindow.isCanceled())

@ -127,10 +127,10 @@ public AuthenticationWindow(String server,
this.server = server;
Image logoImage = null;
if(icon != null)
{
logoImage = icon.getImage();
logoImage = icon.getImage();
}
if(!isUserNameEditable)
@ -406,6 +406,8 @@ public void setVisible(boolean isVisible)
{
this.setName("AUTHENTICATION");
pack();
super.setVisible(isVisible);
if(isVisible)

Loading…
Cancel
Save