// about 50 pixels for the SplitFrame's title bar etc
int height = ((AlignFrame) getTopFrame()).getHeight()
+ ((AlignFrame) getBottomFrame()).getHeight() + 50;
- height = Math.min(height, Desktop.instance.getHeight() - 20);
- // setSize(AlignFrame.DEFAULT_WIDTH, Desktop.instance.getHeight() - 20);
+ // about 65 pixels for Desktop decorators on Windows
+ height = Math.min(height, Desktop.instance.getHeight() - 65);
setSize(width, height);
adjustLayout();