📄 about.java
字号:
/* * @(#)About.java 1.11 01/08/23 * Copyright (c) 2004-2005 wuhua of workroom Inc. All Rights Reserved. * @version 1.0, 10/05/2004 * @author 饶荣庆 * @author 余煜辉 */package com.j2me.about;import com.j2me.language.*;import javax.microedition.lcdui.*;/* *类About是用来描述关于本系统的版本,技术支持,作者的一些信息。 */public class About { private Display display = null; public Alert alertAbout; private boolean isEnglish = false; public String copyrightChinese = " 欢迎使用手机在线动感娱乐!\n" + " 希望我们的软件给你带来愉快!\n" + " 版本信息:1.0\n" + " 技术支持:020-38491064\n" + " 无花工作室版权所有 2004-2005。\n" + " 作者: 饶荣庆\n"; public String copyrightEnglish = " Welcome to Innervation Disport On-Line!\n" + " Best wish with we! \n" + " version: 1.0\n" + " Telphone: 020-34891064\n" + " Copyright (c) 2004-2005 Wuhua Workroom, Inc. All rights reserved.\n" + " @author Rao Rongqing\n" + " @author Yu Yihui\n"; //private Displayable previous; // the previous screen to go back to public About() { this.alertAbout = new Alert("关于"); this.alertAbout.setTimeout(Alert.FOREVER); String iconAbout = "/icon/jabout.png" ; try { Image image = Image.createImage(iconAbout); this.alertAbout.setImage(image); } catch (java.io.IOException e) { this.alertAbout.setString(e.toString()); // just don't append the image. } } public void showAbout(Display display) { this.display = display; if (Language.isEnglish == false) //判断并修改语言 { this.alertAbout.setTitle("关于"); this.alertAbout.setString(copyrightChinese); } else { this.alertAbout.setTitle("About"); this.alertAbout.setString(copyrightEnglish); } this.display.setCurrent(alertAbout); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -