BasicGraphicsUtils.drawString(g, text, 0, textRect.x, textRect.y + fm.getAscent());
g.drawString(text, textRect.x, textRect.y + fm.getAscent()); } else { g.setColor(c.getBackground().brighter()); g.drawString(text, textRect.x, textRect.y + fm.getAscent()); g.setColor(c.getBackground().darker()); g.drawString(text, textRect.x + 1, textRect.y + fm.getAscent() + 1); }
  protected void paintText(Graphics g, JComponent c, Rectangle textRect,                           String text)   {	    Font f = c.getFont();    g.setFont(f);    FontMetrics fm = g.getFontMetrics(f);    g.setColor(c.getForeground());    BasicGraphicsUtils.drawString(g, text, 0,                                  textRect.x,                                   textRect.y + fm.getAscent());  } 