📄 photopreview.java
字号:
package com.Series40Book;
import javax.microedition.lcdui.*;
public class PhotoPreview extends Form
implements CommandListener {
private Command cancel;
private Command next;
public PhotoPreview () {
super ("Photo Preview");
cancel = new Command ("Cancel", Command.CANCEL, 1);
next = new Command ("Next", Command.OK, 1);
addCommand (cancel);
addCommand (next);
setCommandListener (this);
append (new ImageItem(
"Image size is " + BlogClient.photoData.length,
BlogClient.photoPreview,
ImageItem.LAYOUT_CENTER, "image"));
}
public void commandAction (Command c, Displayable d) {
if (c == cancel) {
BlogClient.initSession();
BlogClient.showCamera ();
} else if (c == next) {
BlogClient.showAudioRecorder();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -