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

📄 tales.java

📁 一个RPG的JAVA游戏
💻 JAVA
字号:
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

public class Tales extends MIDlet
	implements CommandListener
{

	private Command exitCommand;
	private SFCanvas sfcan;

	public Tales()
	{
		exitCommand = new Command("Exit", 7, 1);
		SFCanvas sfcanvas = new SFCanvas();
		sfcanvas.addCommand(exitCommand);
		sfcanvas.setCommandListener(this);
		Display.getDisplay(this).setCurrent(sfcanvas);
	}

	protected void startApp()
		throws MIDletStateChangeException
	{
	}

	protected void pauseApp()
	{
		try
		{
			sfcan.thread.wait();
		}
		catch (Exception exception) { }
	}

	protected void destroyApp(boolean flag)
		throws MIDletStateChangeException
	{
		sfcan = null;
	}

	public void commandAction(Command command, Displayable displayable)
	{
		if (command == exitCommand)
			notifyDestroyed();
	}
}

⌨️ 快捷键说明

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