}
int mheight=height;
// sets initial preferred height
- if (height > alignFrame.getHeight() / 2)
+ if (height > alignFrame.getSize().height/ 2)
{
- height = alignFrame.getHeight() / 2;
+ height = alignFrame.getSize().height / 2;
}
apvscroll.setValues(apvscroll.getValue(), height, 0, mheight);
annotationPanel.setScrollOffset(apvscroll.getValue());
av = ap.av;
setLayout(null);
int height = adjustPanelHeight();
- ap.apvscroll.setValues(0, getHeight(), 0, height);
+ ap.apvscroll.setValues(0, getSize().height, 0, height);
addMouseMotionListener(this);