import javax.microedition.midlet.*; import javax.microedition.icdui.Display; import javax.microedition.icdui.Form; import javax.microedition.icdui.Image; public class midlet extends MIDlet { private Form form; private Image image; private Display display; public void pauseApp() { } public void destroyApp(boolean unconditional) { notifyDestroyed(); } public void startApp() { display=Display.getDisplay(this); try{ img=Image.creatImage("/1.png"); catch(IOException ioe){ System.out.println(ioe.getMessage()) } form=new Form("image test"); form.append(img); display.setCurrent(form); } } }