about.java

来自「Game Caro 4 user begginer」· Java 代码 · 共 50 行

JAVA
50
字号
import javax.microedition.lcdui.*;public class About {    /** Copyright notice */    private static final String copyright =	   "This is my fisrt program. \n"      + "Uses Algorithm  AlphaBeta.\n"            + "Write by Nguyen Dinh Nhi .\n"
	  + "Quang Tien, Cumgar, DakLak.";    /** the previous screen to go back to */    private Displayable previous;    /**     * Do not allow anyone to create this class     */    private About() {};    /**     * Put up the About box and when the user click ok return     * to the previous screen.     * @param display The <code>Display</code> to return to when the     *                 about screen is dismissed.     */    public static void showAbout(Display display) {	Alert alert = new Alert("About MIDP");	alert.setTimeout(Alert.FOREVER);    // Add the copyright	alert.setString(copyright);	if (display.numColors() > 2) {		String icon = (display.isColor()) ? "/icons/tg.jpg":" ";	    try {	        Image image = Image.createImage(icon);		    alert.setImage(image);	    } catch (java.io.IOException x) {		// just don't append the image.	    }	}		display.setCurrent(alert);    }}

⌨️ 快捷键说明

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