* 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
*/
JIKA TIDAK SANGGUP DENGAN LELAHNYA BELAJAR MAKA BERSIAPLAH DENGAN PERIHNYA KEBODOHAN
Tuesday, October 9, 2012
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)
};
Subscribe to:
Posts (Atom)