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