?? about.java
字號(hào):
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.
*/
public class About {
/** Copyright notice */
private static final String copyright =
"這一款課程表輔助軟件,適合學(xué)生和輔導(dǎo)員使用。\n" +
"它可以記錄多個(gè)班級(jí)的課程表,并且可對(duì)課程內(nèi)容進(jìn)行修改。\n" +
"說(shuō)明:\n" +
"1.本軟件根據(jù)涉外上課時(shí)間設(shè)計(jì),即,上午4節(jié)從8:00開(kāi)始,下午4接從2:00(冬" +
"季時(shí)間為下午1:50)開(kāi)始。軟件會(huì)自動(dòng)判斷季節(jié)\n" +
"2.本軟件具有橫向滾屏功能,當(dāng)課程內(nèi)容過(guò)長(zhǎng)時(shí),內(nèi)容將橫向滾動(dòng)顯示。\n " +
"3.由于機(jī)型不同,顯示效果可能有變化。\n " +
" --計(jì)應(yīng)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);
}
}
?? 快捷鍵說(shuō)明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -