📄 planehelp.java
字号:
import java.io.IOException;
import javax.microedition.lcdui.*;
public class PlaneHelp extends Canvas {
private Image imgHelp;
private int KeyCode;
private Plane.PlaneMain PM;
private Display display;
public PlaneHelp(Plane.PlaneMain PM, Display display) {
this.PM = PM;
this.display = display;
}
public void paint(Graphics g) {
try {
imgHelp = Image.createImage("/Help.png");
} catch (IOException e) {
}
g.drawImage(imgHelp, 0, 0, 0);
}
public void keyPressed(int KeyCode) {
if (KeyCode == KEY_NUM0) {
display.setCurrent(PM);
PM.repaint();
}
}
public void keyReleased(int KeyCode) {
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -