// Note in JComponent:
// This method is called by the toolkit internally and should
// not be called directly by programs.
+ // I note that addNotify() is called in several areas of Jalview.
int annotationHeight = getAnnotationPanel().adjustPanelHeight();
annotationHeight = getAnnotationPanel()