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

📄 setscreen.java

📁 j2me的打飞机的小程序
💻 JAVA
字号:
package GameTest;

import javax.microedition.lcdui.*;

public class SetScreen extends Form implements CommandListener {
	private static Displayable instance;

	synchronized public static Displayable getInstance() {
		if (instance == null)
			instance = new SetScreen();
		return instance;
	}

	TextField url;

	Gauge volume;

	private SetScreen() {
		super("setting");
//		url = new TextField("Please enter server address", "socket://192.168.0.3:99", 40,
//				TextField.URL);
//		append(url);
		volume = new Gauge("VOL", true, 10, 4);
		append(volume);
		addCommand(new Command("MORE", Command.HELP, 1));
		addCommand(new Command("BACK", Command.BACK, 1));
		setCommandListener(this);
	}

	public void commandAction(Command c, Displayable s) {
		Navigator.flow(c.getLabel());
	}
}

⌨️ 快捷键说明

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