JAL-1373 JAL-520 wrap tooltips for columns in annotation rows
authorJim Procter <jprocter@compbio.dundee.ac.uk>
Mon, 2 Sep 2013 17:11:29 +0000 (18:11 +0100)
committerJim Procter <jprocter@compbio.dundee.ac.uk>
Mon, 2 Sep 2013 17:11:29 +0000 (18:11 +0100)
src/jalview/gui/AnnotationPanel.java

index ed899b1..b978a05 100755 (executable)
@@ -663,7 +663,7 @@ public class AnnotationPanel extends JPanel implements AwtRenderPanelI,
               && aa[row].annotations[res].description != null
               && aa[row].annotations[res].description.length() > 0)
       {
-        this.setToolTipText(aa[row].annotations[res].description);
+        this.setToolTipText("<html>"+JvSwingUtils.wrapTooltip(aa[row].annotations[res].description)+"</html>");
       }
       else
       {