import javax.microedition.midlet.*; import javax.microedition.lcdui.*; public class main extends MIDlet { public Display display; public void startApp() { link = this; canvas cv=new canvas(); cv.start(); display=Display.getDisplay(this).setCurrent(cv); } public void pauseApp() { } public void destroyApp(boolean unconditional) { } }