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
patilajayr
Posts: 415
Registered: ‎07-28-2010
My Device: 8000

lable field with text center aligne.

[ Edited ]

Hello friends ,

                          i want to add lable with text centere aline. means suppose my lable text is large than i dont want to see sencond line left cornet. i want in center aline. but how can we do that?

i want like that..

 

 

------------------------------------------------------------------

| This is sample testing which i want to do that   |

|                            i want                                               |

------------------------------------------------------------------

 

 i want like that..

pleae tell me..

thanks 

 

Developer
maadani
Posts: 729
Registered: ‎05-04-2011
My Device: 9700

Re: lable field with text center aligne.

Hi @

 

Try adding DrawStyle.HCENTER to the labelField style.

 

E.