infoform.java
来自「基于J2ME」· Java 代码 · 共 29 行
JAVA
29 行
package com.yxw.view;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.*;
import com.yxw.control.*;
public class InfoForm extends Form implements CommandListener {
private Command back;
public InfoForm(String arg0,String message) {
super(arg0);
this.back=new Command("返回",Command.BACK,1);
this.append(new StringItem(message,""));
this.addCommand(this.back);
this.setCommandListener(this);
// TODO 自动生成构造函数存根
}
public void commandAction(Command arg0, Displayable arg1) {
// TODO 自动生成方法存根
if(arg0==this.back){
MainMidlet.goBack();
}
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?