Skip to main content

TextArea is ignoring \n

3 replies [Last post]
spint
Offline
Joined: 2008-06-17

The TextArea component is not wrapping text to a newline if it contains a hardcoded \n in the String. For example set the text string to:
This is a sample\ntext string.

Even though I have the number of rows set to 3 it displays this on one line. I would expect it to wrap to 2 lines.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Shai Almog

This was mentioned in two separate threads, it would be fixed in the
next version.
Thanks,
Shai.

> The TextArea component is not wrapping text to a newline if it
> contains a hardcoded \n in the String. For example set the text
> string to:
> This is a sample\ntext string.
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@lwuit.dev.java.net
For additional commands, e-mail: users-help@lwuit.dev.java.net

spint
Offline
Joined: 2008-06-17

Thanks!

chenf
Offline
Joined: 2008-04-29

This is a known issue, will be fixed for the next version.

Thanks,
Chen