Jeevan Mane
Jeevan Mane

Reputation: 49

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?

Upvotes: 2

Views: 997

Answers (3)

Vladimir
Vladimir

Reputation: 21

Another way

Command command= new Command("OK", okImage, 1);
Command dummy= new Command(" ", -1);
listMessagesForm.addCommand(dummy);
listMessagesForm.addCommand(command);

Upvotes: 1

Shai Almog
Shai Almog

Reputation: 52770

Use setReverseSoftbuttons(true) in the look and feel or the form.

Upvotes: 2

Carl
Carl

Reputation: 215

UIManager.getInstance().getLookAndFeel().setReverseSoftButtons(true);

Upvotes: 7

Related Questions