import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class main extends MIDlet implements CommandListener { private Form form; private Display display; Command ok=new Command("slon",Command.OK,1); public void startApp() { display=Display.getDisplay(this); form=new Form("slonik XD"); form.addCommand(ok); form.setCommandListener(this); display.setCurrent(form); display.vibrate(1000); } public void pauseApp() { } public void destroyApp(boolean unconditional){ } public void commandAction(Command c,Displayable d){ if(d==form&&c==ok){ form.append("slon"); } } }