public void paint(Graphics g, Color disabledTextColor, int mnemonicIndex) {
    if (button.isOpaque()) {
      g.setColor(button.getBackground());
      g.fillRect(0, 0, size.width, size.height);
    }

    drawText(g, disabledTextColor, mnemonicIndex);
  }
public void paint(Graphics g, Color disabledTextColor, int mnemonicIndex)