Call pack() instead of setSize, in order to be sure to have the size of the contained main panel.

cusax-fix
Yana Stamcheva 17 years ago
parent ab48660466
commit a11acf25df

@ -172,8 +172,8 @@ public AboutWindow(Frame owner)
mainPanel.add(buttonPanel, BorderLayout.SOUTH);
this.getContentPane().add(mainPanel);
this.setSize(mainPanel.getPreferredSize());
this.pack();
this.setResizable(false);
Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();

Loading…
Cancel
Save