Hello, good morning. :)
I'm doing my thesis "SMS Texkspeak Corrector" but I'm having a hard time to find the right code on how to create submenu in J2ME.
Could anyone help me with this.
Thanks :).
Printable View
Hello, good morning. :)
I'm doing my thesis "SMS Texkspeak Corrector" but I'm having a hard time to find the right code on how to create submenu in J2ME.
Could anyone help me with this.
Thanks :).
You can use List to create a Menu and Menu items in J2ME.
e.g.
List simpleMenu = new List("MyListMenu", Choice.IMPLICIT);
menu.append("File", null);
menu.append("View", null);
menu.append("Edit", null);
menu.append("Exit", null);
//set command listener here and so whatever you want to do when each option get selected.
Thanks for that javabuddy, that gives me an idea. :)
@javabuddy
May I know what does the number mean in this code:
Code :sendCommand = new Command("Send", Command.ITEM, 0);
The "0" thing there, what does it mean?