import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class My extends MIDlet implements CommandListener { private Command exit; private Display di; public My() { di=Display.getDisplay(this); exit=new Command("Выйти",Command.EXIT,2); } public void startApp() { TextBox tb=new TextBox("llullelL","4ypka",256,0); tb.addCommand(exit); tb.setCommandListener(this); di.setCurrent(tb); } public void pauseApp() { } public void destroyApp(boolean unconditional) { notifyDestroyed(); } }