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: 147
Registered: ‎09-10-2008
My Device: Not Specified
Accepted Solution

ListField SetFocus

I tried

 

list.setFocus();

 

     1.Blue

     2.Red

->  3.Green

     4.Pink

     5.Brown

     6.Gray

 

I can able to set the focus to the custom listField control but I need to set the focus to the particular color item in the list by default  "3.Green"

 

How to set the focus to the particular item in the listField?

 

Developer
Posts: 5,339
Registered: ‎09-20-2008
My Device: ***
My Carrier: ***

Re: ListField SetFocus

use setFocus() and setSelectedIndex() methods of ListField.