JAL-282 wrap very long id in tooltip
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 12 Feb 2016 16:47:48 +0000 (16:47 +0000)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Fri, 12 Feb 2016 16:47:48 +0000 (16:47 +0000)
src/jalview/gui/IdPanel.java

index 5dfe581..bbffbab 100755 (executable)
@@ -112,8 +112,8 @@ public class IdPanel extends JPanel implements MouseListener,
       seqAnnotReport.createSequenceAnnotationReport(tip, sequence,
               av.isShowDBRefs(), av.isShowNPFeats(),
               sp.seqCanvas.fr.getMinMax());
-      setToolTipText("<html>" + sequence.getDisplayId(true) + " "
-              + tip.toString() + "</html>");
+      setToolTipText(JvSwingUtils.wrapTooltip(true,
+              sequence.getDisplayId(true) + " " + tip.toString()));
     }
   }