about.java

来自「孤单惊魂」· Java 代码 · 共 30 行

JAVA
30
字号
import javax.microedition.lcdui.*;public class About    extends Alert implements CommandListener {  private static Displayable instance;  synchronized public static Displayable getInstance() {    if (instance == null) {      instance = new About();    }    return instance;  }  private About() {    super("版权声明");    String play = "          齐鲁大学生软件设计大赛参赛作品\n\n";    String author = "                        YTX设计团队\n";    String edition = "                         版本:  V1.5\n\n";    setString(play + author + edition);    setType(AlertType.INFO);    setTimeout(Alert.FOREVER);    addCommand(new Command("返回", Command.BACK, 1));    setCommandListener(this);  }  public void commandAction(Command c, Displayable s) {    Navigator.flow(c.getLabel());  }}

⌨️ 快捷键说明

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