?? about.java
字號:
package clasAn.core;import javax.microedition.lcdui.Alert;import javax.microedition.lcdui.Display;import javax.microedition.lcdui.Displayable;import javax.microedition.lcdui.Image;/** * Typical about box with a string and an image. * In this case the Sun copyright and logo. * Download by http://www.codefans.net */public class About { /** Copyright notice */ private static final String copyright = "這一款課程表輔助軟件,適合學生和輔導員使用。\n" + "它可以記錄多個班級的課程表,并且可對課程內(nèi)容進行修改。\n" + "說明:\n" + "1.本軟件根據(jù)涉外上課時間設計,即,上午4節(jié)從8:00開始,下午4接從2:00(冬" + "季時間為下午1:50)開始。軟件會自動判斷季節(jié)\n" + "2.本軟件具有橫向滾屏功能,當課程內(nèi)容過長時,內(nèi)容將橫向滾動顯示。\n " + "3.由于機型不同,顯示效果可能有變化。\n " + " --計應0702李和宣 \n" + " 2008.12 " + "\n\n" ; /** 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("關(guān)于 課程表助手"); alert.setTimeout(Alert.FOREVER); if (display.numColors() > 2) { String icon = "/gcicon.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 + -