private void drawText(Graphics g, Color disabledTextColor, int mnemonicIndex) {
    if (text != null) {
      View v = (View)button.getClientProperty(BasicHTML.propertyKey);
      if (v != null) {
        v.paint(g, textRect);
      }
      else {
        g.setColor(button.isEnabled() ? button.getForeground() : disabledTextColor);
        UIUtilities.drawStringUnderlineCharAt(button, g, text, mnemonicIndex, textRect.x, textRect.y + fontMetrics.getAscent());
      }
    }
  }
private void drawText(Graphics g, Color disabledTextColor, int mnemonicIndex)