paint is now in drawComponent
authoramwaterhouse <Andrew Waterhouse>
Wed, 6 Apr 2005 17:12:15 +0000 (17:12 +0000)
committeramwaterhouse <Andrew Waterhouse>
Wed, 6 Apr 2005 17:12:15 +0000 (17:12 +0000)
src/jalview/gui/AnnotationLabels.java

index c600b82..9c12b89 100755 (executable)
@@ -169,8 +169,12 @@ public class AnnotationLabels extends JPanel implements MouseListener, MouseMoti
     Graphics2D g = (Graphics2D)g1;\r
     g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON);\r
 \r
-    FontMetrics fm = g.getFontMetrics(g.getFont());\r
+    drawComponent(g);\r
+  }\r
 \r
+  public void drawComponent(Graphics2D g)\r
+  {\r
+    FontMetrics fm = g.getFontMetrics(g.getFont());\r
     g.setColor(Color.white);\r
     g.fillRect(0,0, getWidth(), getHeight());\r
 \r