Respond to dropdown selection
1. Import the following MIDlet libraries import javax.microedition.midlet. import javax.microedition.lcdui. 2. Create the framework for the MIDlet by extending the MIDlet class and overriding the three mandatory MIDlet lifecycle methods startApp , pauseApp , and destroyApp . public class RespondToDropDownSelection extends MIDlet implements CommandListener a. Use the new keyword to create an instance of the ChoiceGroup class. In the constructor, provide a title for the drop-down and specify...
Creating a basic MIDlet
MIDlets are wireless applications that run in a highly-controlled runtime environment. Application management software manages the lifetime of a MIDlet, causing it to transition between three states active, paused and destroyed. The MIDlet class represents the application and specifies the interface to implement to enable the application management software to control the MIDlet. To create the most basic MIDlet, you must extend the MIDlet class and provide implementations for the three abstract...
