Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
stardomains
Posts: 186
Registered: ‎12-14-2009
My Device: Not Specified

How to make text wrap to a new line when using setText() on a text field with a large string?

I'm trying to setText on a text field with a large string. When you type that string it wraps in the field. But using setText it extends horizontally off the screen. Is there a way to get it to wrap?

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: How to make text wrap to a new line when using setText() on a text field with a large string?

If you are using setText yourself, then you have to do the wrapping yourself too sorry.

 

Search the forum, other people have hit the same problem and I think there is at least 1 example of code that can help do the wrapping.