Can I assign the Exit
Command to the # key in an Lwuit Application? When I press the key #, the Exit
command should be called automatically and exit the application.
相关问题
- LWUIT: How to show menu commands with another butt
- Unexpected JDWP Error 21
- Receive text message using J2ME
- How to detect key pressed event in LWUIT form?
- Are all Java SE classes available in Java ME?
You should listen for a KeyPress or keyReleased event on the form with the keycode for # and exitApplication when the # key is pressed.