if (c == CMD_EDIT) {
TextInput textInput = new TextInput(data[currentY][currentX], this,
display);
display.setCurrent(textInput);
}
}
}
import javax.microedition.lcdui.*;
import javax.microedition.midlet.MIDlet;
public class TextInput extends TextBox implements CommandListener {
private final static Command CMD_OK = new Command("OK", Command.OK,
1);
private final static Command CMD_CANCEL = new Command("Cancel", Command.CANCEL,
1);
private Table parent;
private Display display;
public TextInput(String text, Table parent, Display display) {
super("Enter Text", text, 50, TextField.ANY);
this.parent = parent;
this.display = display;