git://source.jalview.org
/
jalview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f53b649
)
JAL-2924 no tooltip over null annotation positions
bug/JAL-2924nullTooltip
author
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 28 Feb 2018 17:54:15 +0000
(17:54 +0000)
committer
gmungoc
<g.m.carstairs@dundee.ac.uk>
Wed, 28 Feb 2018 17:54:15 +0000
(17:54 +0000)
src/jalview/gui/AnnotationPanel.java
patch
|
blob
|
history
diff --git
a/src/jalview/gui/AnnotationPanel.java
b/src/jalview/gui/AnnotationPanel.java
index
71cdc9c
..
260b771
100755
(executable)
--- a/
src/jalview/gui/AnnotationPanel.java
+++ b/
src/jalview/gui/AnnotationPanel.java
@@
-782,6
+782,10
@@
public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
{
this.setToolTipText(JvSwingUtils.wrapTooltip(true, description));
}
+ else
+ {
+ this.setToolTipText(null); // no tooltip if null or empty description
+ }
}
else
{