
สามารถ map Commands เข้ากับ Alart ได้
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class ExampleAlert extends MIDlet {
Display display = Display.getDisplay(this);
public void startApp() {
// Alert(title, text, icon, AlertType)
Alert alert = new Alert("Info", "This is an alert for informative purposes", null, AlertType.INFO);
display.setCurrent(alert);
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
0 ความคิดเห็น:
แสดงความคิดเห็น