setscreen.java

来自「j2me的打飞机的小程序」· Java 代码 · 共 33 行

JAVA
33
字号
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 + =
减小字号Ctrl + -
显示快捷键?