From 8bce732732fcf8d96f03ff8a916ec2896ff1a4ff Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Wed, 6 Apr 2005 17:12:15 +0000 Subject: [PATCH] paint is now in drawComponent --- src/jalview/gui/AnnotationLabels.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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()); -- 1.7.10.2