当前位置: 代码迷 >> J2ME >> 初学者求疑
  详细解决方案

初学者求疑

热度:1072   发布时间:2016-04-17 22:17:06
菜鸟求疑?
美女AND帅哥们帮忙看一下哪里出错了?
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.lcdui.*;
import javax.microedition.lcdui.game.GameCanvas;


public class gameStart extends MIDlet {
  public GameCanvas gc;
  public Display d;
  public static gameStart midlet;
public gameStart() {
// TODO Auto-generated constructor stub
super();
midlet=this;
d=Display.getDisplay(this);

}

protected void destroyApp(boolean arg0) throws MIDletStateChangeException {
// TODO Auto-generated method stub

}

protected void pauseApp() {
// TODO Auto-generated method stub
   
}

protected void startApp() throws MIDletStateChangeException {
// TODO Auto-generated method stub
  if(gc==null){
  gc=new GameCanvas();
  gc.gameState=GameCanvas.MENU;
  d.setCurrent(gc);
  }else{
  d.setCurrent(gc);
  }
}

}


------解决方案--------------------
楼主想让我们帮你看语法错误吗?你怎么不把什么报什么错贴出来?
  相关解决方案
本站暂不开放注册!
内测阶段只得通过邀请码进行注册!