Created
October 9, 2011 03:27
-
-
Save khannedy/1273232 to your computer and use it in GitHub Desktop.
Belajar LWUIT Menggunakan NetBeans IDE
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| * 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