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

Wednesday, September 26, 2012

LAB ACTIVITY 2 : Membuat MIDlet Dengan Menggunakan NetBeans Mobility Pack (Emulator)

Membuat MIDlet Dengan Menggunakan NetBeans Mobility Pack (Emulator)

Seperti program-program sebelumnya, yang diperlukan dalam membuat program ini adalah NetBeans dan NetBeans Mobility Pack yang harus sudah terinstall di komputer Anda.

 

Langkah - Langkah Membuat MIDlet sederhana :
  1. Membuat project baru
  2. Memilih kategori “Mobile
  3. Memilih “Mobile Application
  4. Beri nama project dan tentukan lokasinya (Hilangkan  tanda pada “Create Hello MIDlet”, dan ketikan "Hello World")