Selasa, 09 Oktober 2012

ASSIGNMENT 4TH MEETING


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;


public class Assignment extends MIDlet implements CommandListener {
    Display display;
    Form forms, resultforms;
    Command exitCommand = new Command("Exit", Command.EXIT, 1);
    Command okCommand = new Command("OK", Command.OK, 2);
    Alert alert = new Alert("Error", "Ada yang belum diisi!!pleas isi kabeh!", null, AlertType.ERROR);
    TextField name, address, phonenumber, email;
    ChoiceGroup popup;
    DateField dateonly;
    StringItem result;
  
     

Senin, 01 Oktober 2012

LAB ACTIVITY HIGH LEVEL USER INTERFACE


PERCOBAAN 1 PENGGUNAAN ALERT

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

/**
 * @author pathek$
 */
public class AlertMidlet extends MIDlet implements CommandListener {
    Display display;
     Form mainForm;
     Command exitCommand = new Command("Exit", Command.EXIT, 0);
     Command okCommand = new Command("Ok", Command.OK, 0);
     Gauge gauge = new Gauge (null, false, 5, 0);
     Command[] commands = {
          new Command("Alarm", Command.OK, 0),
          new Command("Confirmation", Command.OK, 0),
          new Command("Info", Command.OK, 0),
          new Command("Warning", Command.OK, 0),
          new Command("Error", Command.OK, 0),
          new Command("Modal", Command.OK, 0)
     };