[JAVA] Aplikasi Hello Word Dengan J2ME (midlet)
Sdikit serong dari VB.net tapi ini juga perlu dpelajari juga..... apalagi kalau masih di bangku perkuliahan....
tutorial kali ini tentang Aplikasi Hello word pada J2ME
kode nya Sbb :
/*
* Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved.
*
* http://stripbandunk.com/
*
* STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package khannedy.belajar.mobile;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.MIDlet;
/**
* @author Eko Kurniawan Khannedy
*/
public class ProgramHello extends MIDlet {
private Display display;
private Form form;
public ProgramHello() {
display = Display.getDisplay(this);
form = new Form("Program Hello");
form.append("Hello World");
}
public void startApp() {
display.setCurrent(form);
}
public void pauseApp() {
display.setCurrent(null);
}
public void destroyApp(boolean unconditional) {
}
}
Semoga Bermanfaat...
tutorial kali ini tentang Aplikasi Hello word pada J2ME
kode nya Sbb :
/*
* Copyright (c) 2011, StripBandunk and/or its affiliates. All rights reserved.
*
* http://stripbandunk.com/
*
* STRIPBANDUNK PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*/
package khannedy.belajar.mobile;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Form;
import javax.microedition.midlet.MIDlet;
/**
* @author Eko Kurniawan Khannedy
*/
public class ProgramHello extends MIDlet {
private Display display;
private Form form;
public ProgramHello() {
display = Display.getDisplay(this);
form = new Form("Program Hello");
form.append("Hello World");
}
public void startApp() {
display.setCurrent(form);
}
public void pauseApp() {
display.setCurrent(null);
}
public void destroyApp(boolean unconditional) {
}
}
Semoga Bermanfaat...
Comments
Post a Comment