Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created October 4, 2011 05:24
Show Gist options
  • Select an option

  • Save khannedy/1260959 to your computer and use it in GitHub Desktop.

Select an option

Save khannedy/1260959 to your computer and use it in GitHub Desktop.
Belajar JME di NetBeans IDE
/*
* 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) {
}
}
/*
* 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.midlet.*;
/**
* @author Eko Kurniawan Khannedy
*/
public class ProgramHello extends MIDlet {
public void startApp() {
}
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment