Payment MIDlet
import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class PaymentMIDlet extends MIDlet { private Display display; List options = null; public PaymentMIDlet() { options = new List("Method of Payment", Choice.EXCLUSIVE); } public void startApp() { display = Display.getDisplay(this); options.append("Visa", null); options.append("MasterCard", null); options.append("Amex", null); display.setCurrent(options); } /** * Pause is a no-op since there are no background activities or * record stores that need to be closed. */ public void pauseApp() { } /** * Destroy must cleanup everything not handled by the garbage collector. * In this case there is nothing to cleanup. */ public void destroyApp(boolean unconditional) { } }
1. | List Demo | ||
2. | List Implicit | ||
3. | List CheckBox | ||
4. | List RadioButton | ||
5. | GUI Test in MIDlet | ||
6. | Travel List | ||
7. | multiple Choice List | ||
8. | Implicit List | ||
9. | List Item MIDlet |