displayable1.java~5~
来自「手机游戏多客户端测试代码」· JAVA~5~ 代码 · 共 31 行
JAVA~5~
31 行
import javax.microedition.lcdui.*;
public class Displayable1 extends Form {
/** Constructor */
TextField message;
Command send ;
Command exit ;
public Displayable1() {
super("Chat Form");
try {
jbInit();
}
catch(Exception e) {
e.printStackTrace();
}
}
/**Component initialization*/
private void jbInit() throws Exception {
// add the Exit command
message = new TextField("Message","",50,0);
send = new Command("Send",Command.SCREEN ,1);
exit = new Command("Exit",Command.EXIT ,1);
addCommand(send);
addCommand(exit);
this.append(message) ;
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?