aboutscreen.java

来自「手机的联网应用」· Java 代码 · 共 31 行

JAVA
31
字号
package cn.com.javachen;

import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;

public class AboutScreen extends Form implements CommandListener {
	private HomeReceiveMidelt hrMidelt;

	private Command backCommand = new Command("返回", Command.BACK, 1);

	public AboutScreen(HomeReceiveMidelt hrMidelt) throws Exception {
		super("版本信息");
		this.hrMidelt = hrMidelt;
		StringItem stringItem = new StringItem(null,
				"家长信息系统\n版本号 1.0.0\n作者:陈勇  ");
		append(stringItem);
		addCommand(backCommand);
		setCommandListener(this);
	}

	public void commandAction(Command c, Displayable d) {
		if (c == backCommand) {
			hrMidelt.mainMenuScreenShow(null);
			return;
		}
	}
}

⌨️ 快捷键说明

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