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

📄 backform.java

📁 情话宝典
💻 JAVA
字号:
import javax.microedition.lcdui.*;

public class BackForm extends Form implements CommandListener{
	public BackForm( Display display, Displayable displayable, String s ){
		super( s );
		this.display = display;
		this.displayable = displayable;

		commandBack = new Command( "主菜单", Command.SCREEN, 1 );
		addCommand( commandBack );
		setCommandListener( this );
	}

	public void commandAction( Command c, Displayable s ){
		if( c.equals(commandBack) ){
			display.setCurrent( displayable );
		}
	}

	public void setText( String s ){
		StringItem item = new StringItem( null, s );
		append( item );
	}

	public void show(){
		display.setCurrent( this );
	}

	private Command commandBack;
	private Display display;
	private Displayable displayable;
}

⌨️ 快捷键说明

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