applet and textfields
I have an applet where I display rows of data using JtextField,
I have disable the fields so the users can't change the data. which turn the field gray - uneditable.
Is there a way to disable a field and allow me to change the text to the color Red.
I tried setcolor(red) on the disabled field - but they are still gray on white:eek:
Read the API for JTextField, in particular the setForeground method which accepts a Color as a parameter.
Have already tried setForeground setBackground setColor. still gray on white
Then you will have to post an SSCCE which demonstrates the problem clearly, because the above works for me
Originally Posted by poajavaweb
The answer was setDisabledTextColor.:rolleyes: