*/
g.setColor(Color.white);
int y = (ypos + (i * charHeight)) - (charHeight / 5);
- y -= charHeight; // fillRect: origin is top left of rectangle
- g.fillRect(0, y, left ? labelWidthWest : labelWidthEast,
+ // fillRect origin is top left of rectangle
+ g.fillRect(0, y - charHeight, left ? labelWidthWest : labelWidthEast,
charHeight + 1);
- y += charHeight; // drawString: origin is bottom left of text
if (value != -1)
{