{
// TODO: display vertical annotation scrollbar if necessary
// this is called after loading new annotation onto alignment
- if (alignFrame.getHeight() == 0)
+ if (alignFrame.getSize().height == 0)
{
System.out.println("NEEDS FIXING");
}
apvscroll.addNotify();
hscroll.addNotify();
- annotationPanelHolder.setPreferredSize(new Dimension(annotationPanel
- .getWidth(), height));
+ annotationPanelHolder.setSize(new Dimension(annotationPanel
+ .getSize().width, height));
- annotationSpaceFillerHolder.setPreferredSize(new Dimension(
- annotationSpaceFillerHolder.getWidth(), height));
+ annotationSpaceFillerHolder.setSize(new Dimension(
+ annotationSpaceFillerHolder.getSize().width
+ , height));
//annotationScroller.validate();// repaint();
validate();
if ((d.height - dif) > 20)
{
- setPreferredSize(new Dimension(e.width,d.height-dif));
- ap.annotationSpaceFillerHolder.setPreferredSize(new Dimension(e.width, d.height - dif));
- ap.annotationPanelHolder.setPreferredSize(new Dimension(d.width, d.height - dif));
+ setSize(new Dimension(e.width,d.height-dif));
+ ap.annotationSpaceFillerHolder.setSize(new Dimension(e.width, d.height - dif));
+ ap.annotationPanelHolder.setSize(new Dimension(d.width, d.height - dif));
ap.apvscroll.setValues(ap.apvscroll.getValue(), d.height-dif, 0, ap.annotationPanel.adjustPanelHeight(false));
ap.validate();