import java.io.IOException; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class Midlet extends MIDlet implements CommandListener { private Command next; private Command back; private Form form; private Image image; private Display display; private int slidenummin=1; private int slidenummax=3; public void startApp() {display = Display.getDisplay(this); form = new Form(null); form.setCommandListener(this); Command next=new Command("next",Command.OK,2); form.addCommand(next); Command back=new Command("back",Command.BACK,1); form.addCommand(back); setImage("/res/1.png"); display.setCurrent(form);} //здесь ошибка public void commandAction(Command c. Displayable d){if (c==next && slidenummin1 ) slidenummin--; form.delete(0); setImage("/"+Integer.toString(slidenummin)+".png"); } public void setImage(String path){ try { image = Image.createImage("/res/1.png"); } catch (IOException ex) { ex.printStackTrace(); } form.append(image);} protected void destroyApp(boolean unconditional) throws MIDletStateChangeException { throw new UnsupportedOperationException("Not supported yet."); } protected void pauseApp() { throw new UnsupportedOperationException("Not supported yet."); } public void commandAction(Command c, Displayable d) { throw new UnsupportedOperationException("Not supported yet."); }}