Newline/Carriage return in TextArea
Is it possible to implement the newline/carriage returns in the TextArea
component? I saw an earlier thread that did not have an answer; hence
Following is the code snippet that I tried -
TextArea ta1 = new TextArea("",8,15,8);
TextArea ta2 = new TextArea("",1,15);
ta1.setText( ta1.getText() + "\r\n" + "Second Line");
The output I got was: "First LineSecond Line".
Any help is greatly appreciated.