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

Trusted Contributor
Posts: 178
Registered: ‎02-20-2011
My Device: 8700
My Carrier: at&t
Accepted Solution

SOS! Set field non focusable !SOS

Hi everyone,

I made a custom button field extends the basic field.
One button click,another is non focusable until the same button is clicked again.
What should I do?

# I tried to change the world, but I couldn't find the source code #

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

Re: SOS! Set field non focusable !SOS

[ Edited ]

Override the method isFocusable().


One option is to create a

setFocusable(boolean focusableFlag)

method in the customer class, have it set an internal boolean value, and return that boolean value is



Once you have onde this, then just setFocusable(...) on the Custom Field to set its focus state correctly.