UIDefaults defaults = UIManager.getLookAndFeelDefaults(); g.setColor(defaults.getColor("Label.disabledForeground"));
g.setColor(UIManager.getColor("Label.disabledForeground"));
  protected void paintDisabledText(JLabel l, Graphics g, String s, int textX,                                 int textY)  {    Color savedColor = g.getColor();    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    g.setColor(defaults.getColor("Label.disabledForeground"));    int mnemIndex = l.getDisplayedMnemonicIndex();    if (mnemIndex != -1)      BasicGraphicsUtils.drawStringUnderlineCharAt(g, s, mnemIndex, textX,          textY);    else      g.drawString(s, textX, textY);    g.setColor(savedColor);  }