i am using sun s lwuit library for making my user interface in java me.
i have a string containing newline characters. this is what i do:
String str = "lfjsdfsdfdkf
sfljl
sdfj";
TextArea box = new TextArea(str);
box.setEditable(false);
tab.addComponent(box);
tab is of type com.sun.lwuit.Container
. Now when the string is displayed on the screen, all of it comes in one line. the new line character does not show up.
how to fit the string within the screen.