java me - How to select programmatically a menubar command and then select a command from a Dialog programmatically? -


On my LWUIT form I have two LWUIT commands: "back" and "phone". When I click on the "Phone" command, an LWUIT dialog is shown, this dialog has a list of commands:

  if (ae.getCommand () == back) {backForm .showBack (); } Else if (ae.getCommand () == phoneCmd) {command [] comms = new command [6]; Comics [0] = farmer; Communities [1] = Transferrers; Comics [2] = Telecharger; Comics [3] = camera; Comics [4] = Deletion; Comms [5] = Vinod; IsMenuShown = True; New CMNU (Communities, "Droit") Achich (); }   

CMenu class is an LWUIT dialog in which there is a list of commands, commands of command "comics" have been passed.

Let me specify a specific command, "delete" command, CMenu dialog executed in my code. How to get it?

The easiest way is to use myList.setCommandList (true) .

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

c# - Confused over DLL entry points (entry point not found exception) -