📄 about.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -