javaME useful code with the J2ME helpful learning cla
源代码在线查看: control.java
import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
public class control extends MIDlet {
private gameCanvas sg;
public control() {
sg = new gameCanvas(this);
}
protected void startApp() throws MIDletStateChangeException {
// TODO Auto-generated method stub
Display.getDisplay(this).setCurrent(sg);
// TODO Auto-generated constructor stub
System.out.print("error");
}
protected void pauseApp() {
// TODO Auto-generated method stub
}
protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub
}
}