From: jprocter Date: Mon, 22 Mar 2010 17:16:30 +0000 (+0000) Subject: note to callers of adjustPanelHeight X-Git-Tag: Release_2_5~121 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=e29fee043997a3aa71b1b610f30483c7c9765045;p=jalview.git note to callers of adjustPanelHeight --- diff --git a/src/jalview/gui/AnnotationPanel.java b/src/jalview/gui/AnnotationPanel.java index 42ca1b6..350cf65 100755 --- a/src/jalview/gui/AnnotationPanel.java +++ b/src/jalview/gui/AnnotationPanel.java @@ -126,7 +126,10 @@ public class AnnotationPanel extends JPanel implements MouseListener, } /** - * DOCUMENT ME! + * Calculates the height of the annotation displayed in the annotation panel. + * Callers should normally call the ap.adjustAnnotationHeight method to ensure all + * annotation associated components are updated correctly. + * */ public int adjustPanelHeight() { @@ -174,6 +177,7 @@ public class AnnotationPanel extends JPanel implements MouseListener, } this.setPreferredSize(new Dimension(1, height)); + ap.alabels.validate(); return height; }