⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 touchscreenmidlet.java

📁 j2me全触摸屏示例代码——一款简单的触摸屏游戏
💻 JAVA
字号:
/*
 * touchScreenMIDlet.java
 *
 * Created on 2007年7月6日, 下午5:45
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */



import javax.microedition.midlet.MIDlet;
import javax.microedition.lcdui.*;

/**
 *
 * @author fobme
 */
public class touchScreenMIDlet extends MIDlet
{
    /** Creates a new instance of touchScreenMIDlet */
    public touchScreenMIDlet ()
    {
        display = Display.getDisplay (this);
    }
    
    
    protected void startApp()
    {
        display.setCurrent (touchscreencanvas);
    }
    
    protected void pauseApp()
    {
    }
    
    protected void destroyApp(boolean unconditional)
    {
    }
      
    public static Display display;
    private GmCanvas touchscreencanvas = new GmCanvas();
 }

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -