Skip to content

Instantly share code, notes, and snippets.

@khannedy
Created October 9, 2011 03:27
Show Gist options
  • Select an option

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

Select an option

Save khannedy/1273232 to your computer and use it in GitHub Desktop.
Belajar LWUIT Menggunakan 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 com.sun.lwuit.Display;
import com.sun.lwuit.Form;
import com.sun.lwuit.Label;
import com.sun.lwuit.layouts.BorderLayout;
import javax.microedition.midlet.MIDlet;
/**
* @author Eko Kurniawan Khannedy
*/
public class ProgramHello extends MIDlet {
private Form form;
private Label label;
public ProgramHello() {
Display.init(this);
}
public void startApp() {
form = new Form();
form.setTitle("Hello World");
form.setLayout(new BorderLayout());
label = new Label("Hello World");
form.addComponent(BorderLayout.CENTER, label);
form.show();
}
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