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

📄 debugform.java.svn-base

📁 测试工具
💻 SVN-BASE
字号:
import javax.microedition.lcdui.*;import javax.microedition.io.*;import javax.microedition.midlet.*;import java.io.*;import java.util.*;/** * Allow a user to enter a single text input field * */public class DebugForm extends javax.microedition.lcdui.Form    implements CommandListener {    /**     *     */    Testlet app;    //private Command done = new Command("确定", Command.OK, 1);    private Command exit = new Command("",Command.CANCEL,2 );    /**     * This constructor creates new BaseDemo with the given title & creates     * the standard commands for the demos.     */    public DebugForm (String title, Testlet app) {        super(title);					this.app = app;				  setCommandListener(this) ;					//setItemStateListener(new StateChangeListener (done, this));					//addCommand(done);					addCommand(exit);				    }    public void setContent( Vector v )    {    	 if ( v == null ) return;    	 deleteAll();    	 for( int i=v.size()-1;i>=0;i-- )			{		    	 append( ( String) v.elementAt(i) );		    	 append( "\r\n" );			}    }        public void setContent( String str )    {    	  append( str );    }    /**     * Indicates that a command event has occurred.      */    public void commandAction(Command c, Displayable d)  {    	    	     if ( c == exit )				    app.returnMainList();			    }        }

⌨️ 快捷键说明

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