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

📄 cricket.java

📁 DoCoMo 手机Java源码 -- Game For Cricket
💻 JAVA
字号:

import com.nttdocomo.ui.Dialog;
import com.nttdocomo.ui.Display;
import com.nttdocomo.ui.IApplication;

public class Cricket extends IApplication {

	private RoundCanvas				roundCanvas = null;
	private RoundPanel              roundPanel  = null;
	private ScoreManager            scoreMgr    = null;
	private RoundTitle              roundTitle  = null;
	
	public void start() {
		try {
			// initialize
			roundTitle  = new RoundTitle(this);
			scoreMgr    = new ScoreManager(roundTitle);
			roundCanvas = new RoundCanvas(this, scoreMgr);
			roundPanel  = new RoundPanel(this, scoreMgr);

			// show main window
			Display.setCurrent(roundTitle);
		} catch (Exception e) {
            StringBuffer msg = new StringBuffer();
            msg.append(e.getClass().getName());msg.append("\n");
            msg.append(e.getMessage());
            Dialog dialog = new Dialog(Dialog.DIALOG_INFO, "婲摦忈奞");
            dialog.setText(msg.toString());
            dialog.show();
            terminate();
		}
	}

    /**
     * 儊僀儞夋柺偺昞帵
     */
    public void showTitle() {
    	roundTitle.refresh();
        Display.setCurrent(roundTitle);
    }

    /**
     * 儊僀儞夋柺偺昞帵
     */
    public void showCanvas(boolean newStart) {
    	if ( newStart ) {
    		roundCanvas.initialize();
    	}
        Display.setCurrent(roundCanvas);
    }

    /**
     * 擖椡夋柺偺昞帵
     */
    public void showPanel() {
    	roundPanel.refresh();
        Display.setCurrent(roundPanel);
    }
}

⌨️ 快捷键说明

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