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