开发者

In J2me using LWUIT Library, how to place command button forcefully on right side of mobile screen?

开发者 https://www.devze.com 2023-03-19 05:55 出处:网络
How can I place a command button forcefully on right side of mobile screen? In j2me, I am using LWUIT library.

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);
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号