⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 about.java

📁 J2ME编写的手机上的一个小游戏---Balls
💻 JAVA
字号:
package balls;import javax.microedition.lcdui.*;/** * Typical about box with a string and an image. * In this case the Sun copyright and logo. */public class About {    private static String copyright =        "Copyright 2000-2001 Sun Microsystems Inc. All Rights Reserved.\n"      + "Sun, Sun Microsystems, the Sun logo, Java, and all Sun-based and"      + "Java-based marks are trademarks or registered trademarks of Sun "      + "Microsystems, Inc. in the United States and other countries.\n"      + "\n"      + "This product meets the Mobile Information Device Profile "      + "specification, containing tested and compliant "      + "Mobile Information Device Profile "      + "software from Sun Microsystems, Inc.\n"      + "\n"      + "Use is subject to license terms and limited to demonstration only. "      + "Sun Microsystems, Inc.  has intellectual property rights relating "      + "to the technology embodied in this software.  In particular, and "      + "without limitation, these intellectual property rights may include "      + "one or more U.S. patents, foreign patents, or pending applications.\n"      + "U.S. Government approval required when exporting the product.\n"      + "\n"      + "FEDERAL ACQUISITIONS\n"      + "Commercial Software -- Government Users Subject to Standard "      + "License Terms and Conditions.";    private Displayable previous; // the previous screen to go back to    private About() {};		// no instances    /**     * Put up the About box and when the use click ok return     * to the previous screen.     */    public static void showAbout(Display display) {	Alert alert = new Alert("About MIDP");	alert.setTimeout(Alert.FOREVER);	if (display.numColors() > 2) {	    String icon = (display.isColor()) ?		"/icons/JavaPowered-8.png" : "/icons/JavaPowered-2.png";	    try {	        Image image = Image.createImage(icon);		alert.setImage(image);	    } catch (java.io.IOException x) {		// just don't append the image.	    }	}	// Add the copyright	alert.setString(copyright);	display.setCurrent(alert);    }}

⌨️ 快捷键说明

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