I have static text of around 800 characters. I want to know a way to show it all in one place. I was trying to show it from TextArea LWUIT, but apparently it is giving me illegal arguement exception. Please help as I have wasted a lot of time on this.
Asked
Active
Viewed 281 times
3 Answers
0
Did you set the maxSize propierty from the TextArea
? I mean if you try to put a value to the maxSize...using TextArea.setMaxSize(800)

Mun0n
- 4,438
- 4
- 28
- 46
-
yes i did this too, but it did not work. It kept on giving the same Illegal argument exception. Could you tell me the use of rows and columns in the header of TextArea. What do they mean? – SoH Jun 06 '12 at 17:55
-
I think that rows and columns are for setting a determined size of the TextArea. If you want to auto adjustable TextArea, you should use setGrowByContent(true); – Mun0n Jun 07 '12 at 11:28
-
I tried everything but it dint work for...my solution was the only thing that worked :D – SoH Jun 07 '12 at 11:39
-1
I finally got it to work :) Following is the workaround for it:
helpText = new TextArea(text);
helpText.setRows(15);
helpText.setColumns(30);
Trick is to add rows and columns separately and dont use setText(text).

SoH
- 2,180
- 2
- 24
- 53