Command Organization

Looking more closely at the example in the previous section, you might surmise that you really have no control over where the Command labels appear on the soft buttons either. After all, I didn't specify left or right soft button for the placement of either Command. The HelloWorld2 application added an “Alert Me!” and a “Say Hi” button, in that order. The first appeared on the right soft key, the second on the left.

In fact, the implementation controls the placement of Command labels on your Displayable objects according to some implementation-dependent policy. You can see the different policies by playing with the various emulators in the wireless toolkit. You can see that the Motorola emulator places buttons differently ...

Get Wireless J2ME™ Platform Programming now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.