
import javax.microedition.midlet.*;
import com.sun.lwuit.*;
import com.sun.lwuit.events.*;
public class Hello_LWUIT extends MIDlet implements ActionListener {
public void startApp() {
Display.init(this);
Form f = new Form("Hello, MIDlet in LWUIT!");
f.show();
Command exitCommand = new Command("Exit");
f.addCommand(exitCommand);
f.setCommandListener(this);
CheckBox checkBox_1 = new CheckBox("CheckBox 1");
CheckBox checkBox_2 = new CheckBox("CheckBox 2");
CheckBox checkBox_3 = new CheckBox("CheckBox 3");
f.addComponent(checkBox_1);
f.addComponent(checkBox_2);
f.addComponent(checkBox_3);
}
public void pauseApp() {}
public void destroyApp(boolean unconditional) {}
public void actionPerformed(ActionEvent ae) {
notifyDestroyed();
}
}