www.pudn.com > spritebullet.rar > MainMIDlet.java
package spritebullet;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class MainMIDlet extends MIDlet {
private static MainMIDlet instance;
ShowBullet d= new ShowBullet(40,100,100);
/** Constructor */
public MainMIDlet() {
instance = this;
}
/** Main method */
public void startApp() {
Display.getDisplay(this).setCurrent(d);
}
/** Handle pausing the MIDlet */
public void pauseApp() {
}
/** Handle destroying the MIDlet */
public void destroyApp(boolean unconditional) {
}
/** Quit the MIDlet */
public static void quitApp() {
instance.destroyApp(true);
instance.notifyDestroyed();
instance = null;
}
}