text area- non editable

hi,

i have input in text area..what do i do, so user cannot edit text area.

I tried. a.setEnabled(false) but it becames gray..is there any other way? thanks
zizi21Asked:
Who is Participating?
 
CPlusJavaCSharpConnect With a Mentor Commented:
Well a text field-

JTextArea jtaDes = new JTextArea();

...
jtaDes.setEditable(false);

try the above...
0
 
zizi21Author Commented:
thanks:-)
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.