J2ME LWUIT PROGRAMMING

HELLO WORLD USING J2ME LWUIT

Without much waste of time i’m gonna give a brief introduction to j2me lwuit programming.Just like in java where we have got libraries such as Swing and AWT, j2me has got libraries too which are more similar to swing in Java,the most popular is called the LWUIT(Light weight user Interface Toolkit).It is a widget that will help you mobile application developer to develop attractive applications other than the basic j2me interface which has got many limitation when it comes to designing beautiful looking apps.LWUIT is very simple for a determined programmer and here a demonstration of a hello world app.

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

import com.sun.lwuit.*;
import javax.microedition.midlet.*;

/**
* @author Karis
*/
public class HelloMIDlet extends MIDlet {

public Form form;

public void startApp() {
Display.init(this);

form=new Form(“HELLO WORLD”);

form.show();

}

public void pauseApp() {
}

public void destroyApp(boolean unconditional) {
}
}

================================

Screenshot of the above code snippet:

In case any of you have got questions on LWUIT programming do post your question and be sure the experts will take you through it within the  shortest time possible.Thank you guys

Statistical data of people viewing this site now:
Map

2 comments on “J2ME LWUIT PROGRAMMING

Leave a comment