fontcanvas.java
来自「J2ME手机游戏开发技术详解随书光盘」· Java 代码 · 共 38 行
JAVA
38 行
package fonttest;import javax.microedition.lcdui.Canvas;import javax.microedition.lcdui.Graphics;class FontCanvas extends Canvas { FontTestlet myTestlet; /** * Construct a new canvas */ FontCanvas(FontTestlet fontTestlet) { myTestlet = fontTestlet; } /** * Initialize self. */ void init() { // no setup stuff yet } /** * Cleanup and destroy. */ void destroy() { // can't really get rid of mTestlet here } /* * Ask MemTestlet to paint itself */ protected void paint(Graphics g) { myTestlet.paint(g); }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?