import javax.microedition.lcdui.*; import javax.microedition.midlet.*; public class Main extends MIDlet { public Display display; public Game canvas; public static Main midlet; public Main() { midlet=this; } public void startApp() { if (display==null) { canvas=new Game(); display=Display.getDisplay(this); display.setCurrent(canvas); } } public void pauseApp() { } public void destroyApp(boolean f) { notifyDestroyed(); } }