Problem
I have a problem where by I have to disable 10 textfield but the default text become grey. I know we can use
textfield1.setDisabledTextColor(Color c)
. But I will have to do this for all 10 textfield, which I find it irreverent.
Is there another option for me to change the UI manager so by default its black? btw, I am using netbean GUI builder.
Code
txtField1.setEnabled(false); txtField1.setDisabledTextColor(Color.BLACK)