Remove Lwuit Commands from menu in J2ME

445 Views Asked by At

I'm developing a J2ME Lwuit Application for S40 Mobiles ,When i add a command to the form like Exit in (Qwerty S40 Mobiles), another select command appears at the middle .The problem that a menu on the left appears holding the 2 commands (Exit and select). How can i remove the select command from the menu?

1

There are 1 best solutions below

4
Mun0n On

So what you need to use is the MenuBar.

This phrase is copied from the API

This class represents the Form MenuBar. This class is responsible to show the Form Commands and to handle device soft keys, back key, clear key, etc... This class can be overridden and replaced in the LookAndFeel

So I think if you can get the MenuBar from your Form, you would be able to remove this Command too.

MenuBar API