请高手给看一下,为什么我的rs总是存不下来呢?
/*
* 创建日期 2007-5-17
*
* TODO 要更改此生成的文件的模板,请转至
* 窗口 - 首选项 - Java - 代码样式 - 代码模板
*/
package example;
import javax.microedition.lcdui.Alert;
import javax.microedition.lcdui.AlertType;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.CommandListener;
import javax.microedition.lcdui.Display;
import javax.microedition.lcdui.Displayable;
import javax.microedition.lcdui.Form;
import javax.microedition.lcdui.StringItem;
import javax.microedition.lcdui.TextBox;
import javax.microedition.lcdui.TextField;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;
import javax.microedition.rms.RecordStore;
import javax.microedition.rms.RecordStore
NotFoundException;
/**
* @author Administrator
*
* TODO 要更改此生成的类型注释的模板,请转至
* 窗口 - 首选项 - Java - 代码样式 - 代码模板
*/
public class Rr extends MIDlet implements CommandListener {
private Command exitCommand;
private Command setCommand;
private Display display;
private Form aForm;
private TextField tf;
//private StringItem si;
private Alert al;
private String ss;
private int a = 333;
private Command backCommand;
private int start = 0;
String s[];
public Rr() {
super();
display = Display.getDisplay(this);
exitCommand = new Command( "离开 ",Command.SCREEN,1);
aForm = new Form( "dsdf ");
tf = new TextField(null,null,256,TextField.ANY);
//si = new StringItem(null, "请输入: ");
setCommand = new Command( "保存 ",Command.SCREEN,1);
//aForm.append(si);
aForm.append(tf);
aForm.addCommand(setCommand);
aForm.addCommand(exitCommand);
aForm.setCommandListener(this);