public class Game extends MIDlet { GameCanvas game;//定义游戏界面的Canvas类GameCanvas的对象gobang public Game() { super(); game=new GameCanvas(this);//生成GameCanvas类的对象game } protected void startApp(){ Display.getDisplay(this).setCurrent(game); //在屏幕上绘出游戏见面game