Tuesday, October 9, 2012

Assignment 4th Meeting : Aplikasi Form Pengisian

*  Buka program NetBeans.
*  Buatlah project Mobile Application baru dengan cara klik menu File - New Project - JavaME.
*  Buatlah Midlet baru pada project yang telah dibuat.
*  Ketikkan source code berikut :


package hello;

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

/**
 * @author jeffrey
 */

Tuesday, October 2, 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)
     };