I has some problems with LWUIT TextArea, not sure whether anyone experiences this. I don't seem to be able to properly predict the length of my text in TextArea.
For example my text have 4 lines when display in the TextArea:
- If i set my TextArea's row as 1, it will be a TextField (Mentioned in docs)
- If i set my TextArea's row as 2 and GrowByContent as true, TextArea will contain around 8 lines of space, leaving a large gap.
- If i set my TextArea's row as 2 and GrowByContent as false, TextArea will cut my text to only 2 lines and a scrollbar will appear.
I don't wish to hard coded the row number as text length will change.
In all cases, my column is 20. Is there is specific meaning for column. Such as 20 means 20 characters? Row is self-explanatory, but what is column? How do we calculate it?
My font is not system font. It is Arial, size 11, plain. Will that affect GrowByContent length prediction?
I read the developer guide, it doesn't have much on TextArea. Please advise. Thanks