开发者

Java set Font Color in a disabled Text Field

开发者 https://www.devze.com 2023-01-16 02:37 出处:网络
I have a disabled JTextField and due to read开发者_如何转开发ability problems i want to make the font black again. So that it looks like its not disabled, but i cant edit it.

I have a disabled JTextField and due to read开发者_如何转开发ability problems i want to make the font black again. So that it looks like its not disabled, but i cant edit it. any suggestions?


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


Try using the method setDisabledTextColor (inherited from JTextComponent)


Please use setDisabledTextColor(Color.BLACK) to make your text color black.

0

精彩评论

暂无评论...
验证码 换一张
取 消