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
Posts: 367
Registered: ‎11-25-2009
My Device: Not Specified
Accepted Solution

GridFieldManager does not wrap text

[ Edited ]

Hello everyone,

 

I have implemented a GridFieldManager in my BlackBerry application (OS 5.0).  It contains 5 rows and 2 columns.  The first column contains an image, and the second column will contain a LabelField().  For some reason, the text in the LabelFields are not wrapping once it reaches the right edge of the screen.  Any ideas on how to do this?

 

Thanks!

 

 

GridFieldManager gfm = new GridFieldManager(5, 2, 0);
gfm.add(new BitmapField(Bitmap.getBitmapResource("bullet.png")));
gfm.add(new LabelField(Constants.HOMESCREEN_BULLET_1));
gfm.add(new BitmapField(Bitmap.getBitmapResource("bullet.png")));
gfm.add(new LabelField(Constants.HOMESCREEN_BULLET_2));
gfm.add(new BitmapField(Bitmap.getBitmapResource("bullet.png")));
gfm.add(new LabelField(Constants.HOMESCREEN_BULLET_3));
gfm.add(new BitmapField(Bitmap.getBitmapResource("bullet.png")));
gfm.add(new LabelField(Constants.HOMESCREEN_BULLET_4));
gfm.add(new BitmapField(Bitmap.getBitmapResource("bullet.png")));
gfm.add(new LabelField(Constants.HOMESCREEN_BULLET_5));

 

 

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

Re: GridFieldManager does not wrap text

Think this is duplicate...

http://supportforums.blackberry.com/t5/Java-Development/GridFieldManager-does-not-wrap-text-at-end-o...

 

Can the original poster please mark this one as solved too?