Remove the pack() from the parent customization window and leave all windows to choose their setSize method.

cusax-fix
Yana Stamcheva 18 years ago
parent 718b78ef00
commit 19689f432b

@ -21,7 +21,9 @@ defaultGroupName=
preferredAccountWizard=
tabOverlap=10
mainWindowWidth=200
mainWindowHeight=450
mainWindowHeight=500
chatWindowWidth=500
chatWindowHeight=400
logoBarWidth=0
logoBarHeight=0
mainToolbarButtonHeight=28

@ -350,7 +350,6 @@ public void setVisible(boolean isVisible)
{
if (isVisible)
{
this.pack();
this.setSizeAndLocation();
this.ensureOnScreenLocationAndSize();

@ -124,8 +124,6 @@ public void stateChanged(ChangeEvent e)
});
}
this.setSizeAndLocation();
JPanel northPanel = new JPanel(new BorderLayout());
northPanel.add(new LogoBar(), BorderLayout.NORTH);
@ -148,6 +146,13 @@ public void stateChanged(ChangeEvent e)
this.addKeybindingAction("chat-close", new CloseAction());
this.addWindowListener(new ChatWindowAdapter());
int width
= GuiActivator.getResources().getSettingsInt("chatWindowWidth");
int height
= GuiActivator.getResources().getSettingsInt("chatWindowHeight");
this.setSize(width, height);
}
/*

@ -87,6 +87,7 @@ else if (reasonCode == WRONG_USERNAME)
isUserNameEditable,
errorMessage);
loginWindow.pack();
loginWindow.setVisible(true);
return userCredentials;

Loading…
Cancel
Save