import javax.microedition.lcdui.Form; import javax.microedition.lcdui.Image; import javax.microedition.lcdui.Display; import javax.microedition.midlet.*; import java.io.IOException; public class Midlet extends MIDlet { public Form form; private Image image; private Display display; public void startApp() { display = Display.getDisplay(this); try { image = image.createImage (100,100); } catch (IOException ioe) { System.out.println (ioe.getMessage()); } form = new Form ("Slide Show"); form.append (image); display.setCurrent(form); } public void pauseApp() {} public void destroyApp(boolean flag) { notifyDestroyed(); } }