labs

CSCI 188 Labs

Lab 1 - HelloWorld

After installing of the necessary tools (java SDK and WTK), create a new project and then compile and run HelloWorld. Modify the program so that it displays your name and "CSCI 188". Send me a zip file of your source and a screen capture of the emulator window.


import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class HelloWorldMinimum extends MIDlet {

public HelloWorldMinimum() { }
protected void pauseApp() { }
protected void destroyApp(boolean b) { }

protected void startApp() {
Display.getDisplay(this).setCurrent(new TextBox(null, "Hello World!", 12,0 ));
}
}

Lab 2 - Property Viewer

Using any part of the High-Level MIDP user interface (Alert, TextBox, Form, List), implement a property viewer. Get and display these properties at a minimum: