import javax.microedition.lcdui.*; import javax.microedition.midlet.*; import java.io.IOException; public class j2nkuMID extends MIDlet implements CommandListener{ Canvas louend=new j2nks(); Command eCommand = new Command("Välja", Command.EXIT, 0); protected void startApp(){ louend.addCommand(eCommand); louend.setCommandListener(this); Display.getDisplay(this).setCurrent(louend); } protected void pauseApp(){} protected void destroyApp( boolean p1 ) throws MIDletStateChangeException{} public void commandAction(Command c, Displayable d){ if(c.getCommandType() == Command.EXIT){ notifyDestroyed(); } } }