que alguien me ayude

guille
14 de Septiembre del 2004
soy completamente principiante en j2me y necesito que alguien me mande o me diga donde encontrar los codigos para poder programar midlets.tengo los conocimientos pero no los codigos.ayudadme x favor!!!

Javier
14 de Septiembre del 2004
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;

public class Hola extends MIDlet implements CommandListener {

private Command ComandoDeSalida;
private Display Pantalla;
private Ticker Boletin = new Ticker("J2ME es lo maximo...");

public Hola () {
Pantalla = Display.getDisplay(this);
ComandoDeSalida = new Command("Salir", Command.SCREEN, 2);
}

public void startApp() {
TextBox caja = new TextBox("Caja de texto","Hola Mundo", 256, 0);
caja.addCommand(ComandoDeSalida);
caja.setCommandListener(this);
caja.setTicker(Boletin);
Pantalla.setCurrent(caja);
}
public void pauseApp() { }

public void destroyApp(boolean unconditional) { }

public void commandAction(Command c, Displayable s) {
if (c == ComandoDeSalida) {
destroyApp(false);
notifyDestroyed();
}
}
}