From: amwaterhouse Date: Wed, 6 Apr 2005 17:12:15 +0000 (+0000) Subject: paint is now in drawComponent X-Git-Tag: Release_2_0~484 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=8bce732732fcf8d96f03ff8a916ec2896ff1a4ff;p=jalview.git paint is now in drawComponent --- diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index c600b82..9c12b89 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -169,8 +169,12 @@ public class AnnotationLabels extends JPanel implements MouseListener, MouseMoti Graphics2D g = (Graphics2D)g1; g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,RenderingHints.VALUE_ANTIALIAS_ON); - FontMetrics fm = g.getFontMetrics(g.getFont()); + drawComponent(g); + } + public void drawComponent(Graphics2D g) + { + FontMetrics fm = g.getFontMetrics(g.getFont()); g.setColor(Color.white); g.fillRect(0,0, getWidth(), getHeight());