JAL-1807 - Bob's last(?) before leaving Dundee -- adds fast file loading
[jalviewjs.git] / src / jalview / appletgui / TreeCanvas.java
index 3f149d0..a16cc8c 100644 (file)
@@ -207,7 +207,7 @@ public class TreeCanvas extends Panel implements MouseListener,
       }
       if (!nodeLabel.equals(""))
       {
-        g.drawString(nodeLabel, xstart + 2, ypos - 2);
+        awt2swing.Util.drawString(g, nodeLabel, xstart + 2, ypos - 2);
       }
 
       String name = (markPlaceholders && node.isPlaceholder()) ? (PLACEHOLDER + node
@@ -231,7 +231,7 @@ public class TreeCanvas extends Panel implements MouseListener,
         g.fillRect(xend + 10, ypos - charHeight + 3, charWidth, charHeight);
         g.setColor(Color.white);
       }
-      g.drawString(name, xend + 10, ypos);
+      awt2swing.Util.drawString(g, name, xend + 10, ypos);
       g.setColor(Color.black);
     }
     else
@@ -294,7 +294,7 @@ public class TreeCanvas extends Panel implements MouseListener,
 
       if (!nodeLabel.equals(""))
       {
-        g.drawString(nodeLabel, xstart + 2, ypos - 2);
+        awt2swing.Util.drawString(g, nodeLabel, xstart + 2, ypos - 2);
       }
 
     }