This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com