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
Contributor
Posts: 10
Registered: ‎08-29-2012
My Device: 9860
My Carrier: Relience

Clickable label field

Hi all,

 

Can any one give me the code for clickable label field!

 

 

Thanks,

sahil

Developer
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Clickable label field

LabelField is non-focusable by default.

 

You might have to extend the base class and set the focusable attribute.

 

Highlighted
Developer
Posts: 209
Registered: ‎04-30-2011
My Device: BlackBerry Z10
My Carrier: Airtel

Re: Clickable label field

Hi

 

 
		LabelField lbl = new LabelField("Pawan", Field.FOCUSABLE){
			protected boolean navigationClick(int status, int time)
			{
				//Right your logic, if you want any action on Click event.
				return super.navigationClick(status, time);
			}
		};