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

📄 goodbyeword.java

📁 有关j2me初级入门,如何使多个midlet 同时运行,打包运行例子符源码
💻 JAVA
字号:

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

public class Goodbyeword extends MIDlet implements CommandListener{
	private Display display;
	private TextBox textbox;
	private Command quitcommand;
	public void startApp(){
		display=Display.getDisplay(this);
		quitcommand=new Command("quit",Command.SCREEN,1);
		textbox=new TextBox("Goodbyeword","my two midlet",40,0);
		textbox.addCommand(quitcommand);
		textbox.setCommandListener(this);
	    display.setCurrent(textbox);
	}
	public void pauseApp(){
		
	}
	public void destroyApp(boolean unconditional){
		
	}
	public void commandAction(Command choice,Displayable displayable){
		if(choice==quitcommand){
			destroyApp(false);
			notifyDestroyed();
		}
			
	}
}

⌨️ 快捷键说明

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