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
New Developer
Posts: 1
Registered: ‎12-18-2008
My Device: Not Specified

Controlling the Default item in a Menu

We've added menu items to menus before, and have that working, but I do not see any documentation on how to control the default item that is highlighted when the menu is opened.  Is there a way to do this?

Developer
Posts: 53
Registered: ‎12-11-2008
My Device: Not Specified

Re: Controlling the Default item in a Menu

Set menu item priority to 0 and this menu item will be highlighted first.

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

Re: Controlling the Default item in a Menu

How about Menu.setDefault()  ??

 

See the API docs for Menu class.