📄 infoform.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -