I'm trying to set the foreground color of a JComponent (particularly, a JTextField) when that JComponent is not enabled. The default behavior for SWING, of course, is to grey-out the text. Is there any way for me to override that grey color? Using setForeground(), either before or after the setEnabled() call, doesn't seem to do anything.
Dave Taubler<br />Specializing in <a href="http://taubler.com/articles/" target="_blank" rel="nofollow">Java and Web Development</a>
Joined: May 15, 2001
Okay, two second after I posted that, I went back to the JavaDoc page and saw TextComponent.setDisabledTextColor(). Amazingly, that did the trick.