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: 112
Registered: ‎05-29-2009
My Device: Not Specified

setFocus in Modal dialog

Hi,

 

I have made one dialog having the following strings-

Apple

Banana

Carrot

Eggs

Sunflower

 

I have put doModal method for select the choice.

 

In this case if I want to go to the Eggs, I have to scroll down as the current focus is on Apple.

 

Now I want the focus on the Eggs on pressing the E from the keyboard.

 

I have overrided the method keyChar for getting the string started with the pressed charecter.

 

How it can be done??

Please help me...

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

Re: setFocus in Modal dialog

Can you post the code that creates the Dialog, and then we can suggest what to change in it.  Cheers