I'd like to localize the MenuBar
of an LWUIT form
.
I don't want to show the users "Menu" / "Select" / "Cancel".
I've successfully localized single commands, which get shown when the Menu opens, via
back.setCommandName("bk");
searchCommand.setCommandName("search");
exit.setCommandName("ex");
mainMenu.addCommand(back, 0);
mainMenu.addCommand(searchCommand, 1);
mainMenu.addCommand(exit, 2);
For the MenuBar
I tried
MenuBar m = NameOfMyForm.getMenuBar();
m.setName("test");
mainMenu.setMenuBar(m);
But this didn't work - also this wouldn't give me access to "Select" and "Cancel".
Use
setResourceBundle()
method. See the code for change the menu, select and cancel command captions.Suppose if you want to use image for these commands means use
setMenuIcons
method,