How can I set off editable of TextArea?

Hello!

I have got a question. How can I set off editable of TextArea? So, How can I set off it that I can’t write into TextArea?

Any idea would be gratefully appreciated !

Do you mean something like this? TextArea txt = new TextArea(); txt.setReadOnly(true); // This line prevents user input This way you also can’t change the value programatically. So if you want to do that you have to first disable Read only mode and after setting the value re-enabling it.

Is this what you were looking for?

Tkank’s for your answer. I solved this problem.

Solution: txt.setEnable(false)

But, first of all, this solution didn’t work well. But after that it was good.