📄 aboutgame.java
字号:
/* * @(#)AboutGame.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 example;package com.wuhua.mali; import javax.microedition.lcdui.Alert;import javax.microedition.lcdui.Display;import javax.microedition.lcdui.Image;/* *类About是用来描述关于本系统的版本,技术支持,则作者的,以及游戏规的一些信息。 */public class AboutGame { private Display display = null; public Alert alertAbout; private String copyrightChinese = null; private String copyrightEnglish = null; /*public String copyrightChinese = " 欢迎使用手机在线动感娱乐!\n" + " 希望我们的软件给你带来愉快!\n" + " 21点游戏是中国传统牌类游戏\n" + " 游戏规则是玩家与庄家的点数如果超过\n" + " 21点与点数相同时为打和\n" + " 如果一方点数不过16点,而对方如果超过16点\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"; */ //private Displayable previous; // the previous screen to go back to public AboutGame(String copyrightChinese, String copyrightEnglish ) { this.copyrightChinese = copyrightChinese; this.copyrightEnglish = copyrightEnglish; 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; this.alertAbout.setTitle("关于"); this.alertAbout.setString(copyrightChinese); this.display.setCurrent(alertAbout); }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -