import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import java.io.*; public class main extends MIDlet implements CommandListener{ private Form form; private Display display; private Image img; private int max=4; private int image=1; public void startApp() { form=new Form("foto"); try{ img=Image.createImage("/1.png"); } catch (IOExeption ioe){ ioe.printStackTrase(); } display.setCurrent(this); next=new Command("next",Command.OK,1); form.addCommand(next); form.append(img); form.setCommandListener(this); display.setCurrent(form); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } public void commandAction(Command c,Displayable d){ if (d==form&&c==next&&image