📄 ui_low7.java
字号:
// 程序名UI_Low7.java
// 测试图象的绘制——Image对象
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
public class UI_Low7 extends MIDlet implements CommandListener{
private Display display;
private MutableImage imageItem;
private Form form;
private Command cmdExit;
private Command cmdChange;
public UI_Low7(){
display = Display.getDisplay( this );
imageItem = new MutableImage();
form = new Form("Test mutable image");
form.append(imageItem);
cmdExit = new Command("Exit",Command.SCREEN,1);
cmdChange = new Command("Change",Command.SCREEN,1);
form.addCommand(cmdExit);
form.addCommand(cmdChange);
form.setCommandListener(this);
}
protected void startApp(){
display.setCurrent(form);
}
public void commandAction( Command c, Displayable d ){
if (c == cmdChange) {
imageItem.change();
return;
}
if (c == cmdExit){
destroyApp( true );
notifyDestroyed();
}
}
protected void pauseApp(){
}
protected void destroyApp( boolean unconditional ){
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -