testing Graphics2D
authoramwaterhouse <Andrew Waterhouse>
Fri, 1 Apr 2005 16:42:25 +0000 (16:42 +0000)
committeramwaterhouse <Andrew Waterhouse>
Fri, 1 Apr 2005 16:42:25 +0000 (16:42 +0000)
src/jalview/gui/IdCanvas.java

index ff3eb16..2aa39a7 100755 (executable)
@@ -44,7 +44,9 @@ public class IdCanvas extends JPanel
 \r
   }\r
 \r
-  public void paintComponent(Graphics gg) {\r
+  public void paintComponent(Graphics g) {\r
+    Graphics2D gg = (Graphics2D)g;\r
+    gg.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\r
     AlignmentI al         = av.alignment;\r
     int        charHeight = av.charHeight;\r
     Font italic = new Font(av.getFont().getName(), Font.ITALIC, av.getFont().getSize());\r