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

📄 about.java

📁 一款Java版的课程表软件
💻 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.
 */
public class About {
    /** Copyright notice */
    private static final String copyright =
        "这一款课程表辅助软件,适合学生和辅导员使用。\n" +
        "它可以记录多个班级的课程表,并且可对课程内容进行修改。\n" +
        "说明:\n" +
        "1.本软件根据涉外上课时间设计,即,上午4节从8:00开始,下午4接从2:00(冬" +
        "季时间为下午1:50)开始。软件会自动判断季节\n" +
        "2.本软件具有横向滚屏功能,当课程内容过长时,内容将横向滚动显示。\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("关于  课程表助手");
        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 + -