📄 about.java
字号:
/* * To change this template, choose Tools | Templates * and open the template in the editor. */import javax.microedition.lcdui.*;/** * @author Administrator */public class About extends Canvas implements CommandListener { /** * constructor */ public About() { try { // Set up this canvas to listen to command events setCommandListener(this); // Add the Exit command addCommand(new Command("Exit", Command.EXIT, 1)); } catch(Exception e) { e.printStackTrace(); } } /** * paint */ public void paint(Graphics g) { g.drawString("Sample Text",30,30,0); } /** * Called when a key is pressed. */ protected void keyPressed(int keyCode) { } /** * Called when a key is released. */ protected void keyReleased(int keyCode) { } /** * Called when a key is repeated (held down). */ protected void keyRepeated(int keyCode) { } /** * Called when the pointer is dragged. */ /** * Called when action should be handled */ public void commandAction(Command command, Displayable displayable) { }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -