git://source.jalview.org
/
jalview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Java 1.1 compatible
[jalview.git]
/
src
/
jalview
/
gui
/
AnnotationLabels.java
diff --git
a/src/jalview/gui/AnnotationLabels.java
b/src/jalview/gui/AnnotationLabels.java
index
7418e48
..
1068980
100755
(executable)
--- a/
src/jalview/gui/AnnotationLabels.java
+++ b/
src/jalview/gui/AnnotationLabels.java
@@
-128,10
+128,12
@@
public class AnnotationLabels extends JPanel implements MouseListener,
label = "";
\r
}
\r
\r
label = "";
\r
}
\r
\r
- ap.av.alignment.addAnnotation(new AlignmentAnnotation(label,
\r
+ AlignmentAnnotation newAnnotation = new AlignmentAnnotation(label,
\r
"New description",
\r
"New description",
\r
- new Annotation[ap.av.alignment.getWidth()]));
\r
+ new Annotation[ap.av.alignment.getWidth()]);
\r
\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
dif = aa[aa.length - 1].height;
\r
}
\r
else if (evt.getActionCommand().equals(HIDE))
\r