public void paint(Graphics g)\r
{\r
\r
- imgWidth = (av.endRes - av.startRes + 1) * av.charWidth;\r
+ imgWidth = getSize().width;\r
+ //(av.endRes - av.startRes + 1) * av.charWidth;\r
\r
if (image == null || imgWidth != image.getWidth(this))\r
{\r
fastPaint = false;\r
}\r
\r
+\r
if (fastPaint)\r
{\r
g.drawImage(image, 0, 0, this);\r
return;\r
}\r
\r
+ gg.setColor(Color.white);\r
+ gg.fillRect(0, 0, getSize().width, getSize().height);\r
drawComponent(gg, av.startRes, av.endRes + 1);\r
+\r
+\r
g.drawImage(image, 0, 0, this);\r
}\r
\r
{\r
g.setFont(av.getFont());\r
\r
+\r
+ g.setColor(Color.white);\r
+ g.fillRect(0, 0, (endRes - startRes) * av.charWidth, getSize().height);\r
+\r
+\r
if (fm == null)\r
fm = g.getFontMetrics();\r
\r
\r
- g.setColor(Color.white);\r
- g.fillRect(0, 0, (endRes - startRes) * av.charWidth, getSize().height);\r
-\r
if ((av.alignment.getAlignmentAnnotation() == null) ||\r
(av.alignment.getAlignmentAnnotation().length < 1))\r
{\r
else\r
{\r
g.fillRect(lastSSX, y + 4 + iconOffset,\r
- (x+1) * av.charWidth - lastSSX, 7);\r
+ x * av.charWidth - lastSSX, 7);\r
}\r
break;\r
\r