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