label = "";\r
}\r
\r
- ap.av.alignment.addAnnotation(new AlignmentAnnotation(label,\r
+ AlignmentAnnotation newAnnotation = new AlignmentAnnotation(label,\r
"New description",\r
- new Annotation[ap.av.alignment.getWidth()]));\r
+ new Annotation[ap.av.alignment.getWidth()]);\r
\r
+ ap.av.alignment.addAnnotation(newAnnotation);\r
+ ap.av.alignment.setAnnotationIndex(newAnnotation, 0);\r
dif = aa[aa.length - 1].height;\r
}\r
else if (evt.getActionCommand().equals(HIDE))\r