Java set Font Color in a disabled Text Field

Simiil picture Simiil · Sep 13, 2010 · Viewed 17k times · Source

I have a disabled JTextField and due to readability problems i want to make the font black again. So that it looks like its not disabled, but i cant edit it. any suggestions?

Answer

Faisal Feroz picture Faisal Feroz · Sep 13, 2010

You can use the setDisabledTextColor(Color c) method to set the desired color. For more information check: javadocs