import java.io.IOException; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class Midlet extends MIDlet { private Command command; private Form form; private Image image; private Display display; public void startApp() {display = Display.getDisplay(this); form = new Form(null); try { image = Image.createImage("/res/res.png"); } catch (IOException ex) { ex.printStackTrace(); form.append(image); } display.setCurrent(form);} public void pauseApp() { } public void destroyApp(boolean unconditional) {}}