I have created LWUIT TextField
,and I've added paragraphs of text to my TextField
,But I am not able to Display the Fulltext ?I am able to Display single line of text?
Here my Code:
TextField field=new TextField(detailNews.getDescription());
field.setSingleLineTextArea(false);
field.setGrowByContent(true);
field.setIsScrollVisible(true);
field.setFocus(false);
field.setRows(detailNews.getDescription().length());
form2.addComponent(field);
TextField
is only for a single line case. What you want to use is a TextArea
Component.
So try to change your TextField
component by a TextArea
Component