protected void paintText(Graphics g, JComponent c, Rectangle textRect, String text) { Font f = c.getFont();  g.setFont(f);  FontMetrics fm = SwingUtilities.getFontMetrics(f);  g.setColor(c.isEnabled() ? textColor : disabledTextColor);  BasicGraphicsUtils.drawString(g, text, 0, textRect.x, textRect.y + fm.getAscent()/2); }
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()); }
    protected void paintText(Graphics g,			     JComponent c,			     Rectangle textRect,			     String text)     {		Font f = c.getFont();        g.setFont(f);        FontMetrics fm = SwingUtilities.getFontMetrics(f);	g.setColor(c.isEnabled() ? textColor : disabledTextColor);	BasicGraphicsUtils.drawString(g,				      text, 				      0,				      textRect.x, 				      textRect.y + fm.getAscent()/2);    } 