import javax.microedition.midlet.*; import javax.microedition.lcdui.*; /** * @author aNNiMON */ public class Main extends MIDlet { public Display dsp; public static Main midlet; public Canv cnv; public Main () { midlet = this; } public void startApp() { dsp = Display.getDisplay(this); cnv = new Canv(); dsp.setCurrent(cnv); } public void pauseApp() { } public void destroyApp(boolean unconditional) { notifyDestroyed(); } }