In a Codename One project, I have the following code that generates some input TextArea:
for (int i = 0; i < titles.length; i++) {
SpanLabel introTextTitle = new SpanLabel(titles[i], "Label");
SpanLabel introText = new SpanLabel(descriptions[i], "LabelSmallThin");
TextArea textArea = new TextArea("WriteHere", 2, 80, TextArea.ANY);
uib.bind(properties[i], textArea);
add(getSeparatorLine(null));
add(introTextTitle);
add(introText);
add(textArea);
}
My problem is that the user input in each TextArea is limited to 124 chars (including spaces). My question are:
How to increase the max length of the input? Indeed I want no input limit. The Java "String" object included in the Property binded to the TextArea should have a very high capacity (2^31-1 chars, https://stackoverflow.com/a/1179996/2670744)
What is the meaning of row and columns in the constructor of TextArea? Because the width of the TextArea is decided by the layout manager and it changes in every device, I don't understand the meaning of specify the number of columns (that I suppose to be the number of chars for each row).