tooltips
authoramwaterhouse <Andrew Waterhouse>
Thu, 1 Feb 2007 12:49:24 +0000 (12:49 +0000)
committeramwaterhouse <Andrew Waterhouse>
Thu, 1 Feb 2007 12:49:24 +0000 (12:49 +0000)
src/jalview/gui/SeqPanel.java

index ed9ce8d..57a30bf 100755 (executable)
@@ -581,12 +581,15 @@ public class SeqPanel extends JPanel implements MouseListener,
         {\r
           if(groups[g].getStartRes()<=res && groups[g].getEndRes()>=res)\r
           {\r
+            if (tooltipText.length() > 6)\r
+                    tooltipText.append("<br>");\r
+\r
             if (!groups[g].getName().startsWith("JTreeGroup") &&\r
                 !groups[g].getName().startsWith("JGroup"))\r
-              tooltipText.append(groups[g].getName() + " ");\r
+              tooltipText.append(groups[g].getName());\r
 \r
             if(groups[g].getDescription()!=null)\r
-              tooltipText.append(groups[g].getDescription()+"<BR>");\r
+              tooltipText.append(": "+groups[g].getDescription());\r
           }\r
         }\r
       }\r
@@ -680,6 +683,7 @@ public class SeqPanel extends JPanel implements MouseListener,
             }\r
           }\r
         }\r
+\r
         if (tooltipText.length() == 6) // <html></html>\r
         {\r
           setToolTipText(null);\r