سؤال

We know that TextArea are not editable , so how to create an editable component which looks like a TextArea ( having the multi-line behaviour ) ?

هل كانت مفيدة؟

المحلول

Use TextField and set its setSingleLineTextArea(false). This requires LWUIT 1.5 or newer.

نصائح أخرى

TextArea is editable. Here is how you can create editable text area:

TextArea text = new TextArea();
text.setEditable(true);
text.setSingleLineTextArea(false);

Does this not work for you?

What version of LWUIT are you using and platform are you on?

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top