import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import java.io.*; public class Game extends MIDlet { public Display Display; public static Game game; public MyGameCanvas GameCanvas; public Game() { game = this;} public void startApp() { Display = Display.getDisplay(this); GameCanvas = new MyGameCanvas(); Display.setCurrent(GameCanvas);} public void pauseApp() {} public void destroyApp(boolean Game) { notifyDestroyed(); }}