In J2me using LWUIT Library, how to place command button forcefully on right side of mobile screen?
How can I place a command button forcefully on right side of mobile screen? In j2me, I am using LWUIT library.
In my form I want to add only one command i.e. back command. This back command must be placed on right side of the screen. What is the necessary code 开发者_如何学运维for this?
UIManager.getInstance().getLookAndFeel().setReverseSoftButtons(true);
Use setReverseSoftbuttons(true)
in the look and feel or the form.
Another way
Command command= new Command("OK", okImage, 1);
Command dummy= new Command(" ", -1);
listMessagesForm.addCommand(dummy);
listMessagesForm.addCommand(command);
精彩评论