import javax.microedition.lcdui.Form; import javax.microedition.lcdui.Image; import javax.microedition.lcdui.Display; import javax.microedition.midlet.MIDlet; import java.io.IOException; public class MyFirstMidlet extends MIDlet { private Form form; private Image image; private Display display; // Старт public void startApp() { display = Display.getDisplay(this); try { image = Image.createImage("/flower.png"); } catch (IOException ioe) { System.out.println(ioe.get.Message()); } form = new Form("SlideShow"); form.append(image); display.setCurrent(form); } // Пауза public void pauseApp() { } // Выход public void destroyApp(boolean uncondit) { } }