import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import java.io.*; public class da extends MIDlet implements CommandListener { private Command exit; private Display display; private List list; private Image[] img; public Main() { img = new Image[1]; try { img[0] = Image.createImage("/ntv.png"); } catch(IOException ioe) { } exit = new Command("Exit", Command.EXIT, 1); String[] menu = {"POHEDEL", "BTOPHIK", "CPEDA"} ; list = new List("VIBEPI", Choice.IMPLICIT, menu, img); list.addCommand(exit); list.setCommandListener(this); display = Display.getDisplay(this); } public void startApp() { display.setCurrent(list); } public void pauseApp() {} public void destroyApp(boolean flag) { notifyDestroyed(); } public void commandAction(Command c, Displayable d) { if (d == list) { if(c == exit) destroyApp(true); } } }