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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 90
Registered: ‎04-03-2012
My Device: 9100
My Carrier: movilnet

LabelField with text placed on extreme right

hi there i wonder how put text in extreme right?? i need a LabelField with text in the extreme left ( default behavor )  and a number in the extreme right

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

Re: LabelField with text placed on extreme right

Try this:

 

LabelField rightLabel = new LabelField("Text on right", LabelField.USE_ALL_WIDTH | DrawStyle.RIGHT);

 

Sorry coded from memory, might not be correct, but you get the idea.

 

The problem with this is that the LabelField is 'full width'.  The other option is this:

 

LabelField rightLabel = new LabelField("Text on right", LabelField.RIGHT);

 

This will draw on the right of the Manager into which it is put.  This can be a bit funny, it depends on the attributes of the Manager you add it to.  But if you add this to a VFM with style attribute (USE_ALL_WIDTH, it should work.

 

But I have not tested any of these.  I will test if you can't get this working. 

Highlighted
New Developer
Posts: 10
Registered: ‎08-24-2012
My Device: 9820
My Carrier: Airtel

Re: LabelField with text placed on extreme right

Hi,

          u can an use style FIELD_RIGHT  and make it its manager use all width.This will solve the problem.