Payment MIDlet : List « J2ME « Java

Payment MIDlet

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);

     * 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) {


Related examples in the same category

1.List DemoList Demo
2.List ImplicitList Implicit
3.List CheckBoxList CheckBox
4.List RadioButtonList RadioButton
5.GUI Test in MIDletGUI Test in MIDlet
6.Travel ListTravel List
7.multiple Choice Listmultiple Choice List
8.Implicit ListImplicit List
9.List Item MIDletList Item MIDlet