JAL-1807 - Bob's last(?) before leaving Dundee -- adds fast file loading
[jalviewjs.git] / src / jalview / appletgui / IdCanvas.java
index a045541..0e142ae 100644 (file)
@@ -85,7 +85,7 @@ public class IdCanvas extends Panel
       gg.setColor(Color.black);
     }
 
-    gg.drawString(s.getDisplayId(av.getShowJVSuffix()), 0,
+    awt2swing.Util.drawString(gg, s.getDisplayId(av.getShowJVSuffix()), 0,
             ((i - starty) * charHeight) + ypos + charHeight
                     - (charHeight / 5));
 
@@ -297,7 +297,7 @@ public class IdCanvas extends Panel
                 avcharHeight);
         gg.setColor(currentTextColor);
 
-        gg.drawString(seq.getDisplayId(av.getShowJVSuffix()), 0,
+        awt2swing.Util.drawString(gg, seq.getDisplayId(av.getShowJVSuffix()), 0,
                 (((i - starty) * avcharHeight) + avcharHeight)
                         - (avcharHeight / 5));