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: 155
Registered: ‎05-20-2009
My Device: Not Specified
Accepted Solution

Reg: Menu Items.....

 Hi,

 

         I want to create menu Items.......like save,view,close,.....etc.

         I am extending my screen to MainScreen...So plz suggest me how to create menuItems....

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Reg: Menu Items.....

Something like this in your main screen.

 

 protected void makeMenu(Menu menu, int instance)
 {
       menu.add(_fetchMenuItem);

 }

 

private MenuItem _fetchMenuItem = new MenuItem("Fetch" , 100, 10)
{
        public void run()
        {
            // code here
        }
};


Use Search. "Accept Solution" If the problem is resolved.
Developer
Posts: 155
Registered: ‎05-20-2009
My Device: Not Specified

Re: Reg: Menu Items.....

Thanks a lot....It helped me a lot....

 

Developer
Posts: 3,951
Registered: ‎07-15-2008
My Device: Not Specified

Re: Reg: Menu Items.....

To understand more about MenuItems.. go thru this Link.

 

http://www.slashdev.ca/2008/05/07/menuitem-demystified/

 

Check Examples shipped with JDE also.


Use Search. "Accept Solution" If the problem is resolved.