Professional Documents
Culture Documents
4. Next, select and download Java ME SDK 3.3 (46MB) from the link provided beside it.
5. Go to the following web page to download J2ME Wireless Toolkit :
http://java.sun.com/products/sjwtoolkit/download.html
(f) In the toolbar main window click on the Build button. When the build
compiles successfully then click on the Run button.
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class HelloMidlet extends MIDlet {
public HelloMidlet () {
}
public void startApp () {
Form form=new Form ("First Program");
form.append ("Hello World!!!!!!!");
Display.getDisplay (this).setCurrent (form);
}
public void pauseApp () {
}
public void destroyApp (boolean unconditional) {
}
}