stfm.java

来自「j2me 手机拼图源码」· Java 代码 · 共 53 行

JAVA
53
字号
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package yuan;//import javax.microedition.midlet.*;import javax.microedition.lcdui.*;import java.io.*;/** * * @author YUANYUEXIANG */public class stfm extends Form implements CommandListener{    Command c1=new Command("游戏",Command.OK,1);    Command c2=new Command("退出",Command.EXIT,2);    static StringItem tf;    Image im =null;      stfm()   {       super("叶飘零设计");            try{        im=Image.createImage("/yuan/Ja.png");    }    catch(IOException e)    {}    ImageItem ii=new ImageItem("",im,Item.LAYOUT_CENTER,"图片",Item.BUTTON);    this.append(ii);    addCommand(c1);    addCommand(c2);      this.setCommandListener(this);   }        public void commandAction(Command c,Displayable dis)    {if(dis==this)     {    if(c==c1)    {    yue.game();    }    if(c==c2)    {    yue.quitApp();    }        }    }}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?