Search code examples
texttextarealwuit

Set Large text in TexArea LWUIT


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.


Solution

  • 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).