1. i can't see anything in the api that lets you capture the field full event to surpress the status popup. what you could do is override keyChar on your screen and track how many characters have been entered that way. something like this should work:
public boolean keyChar(char key, int status, int time) {
switch (key) {
case Characters.BACKSPACE:
return false;
case Characters.ESCAPE:
System.exit(0);
return true;
default:
if (getFieldWithFocus() == entryField) {
if (entryField.getTextLength() < 7) {
return false;
} else {
return true;
}
}else{
return false;
}
}
}
2.
protected boolean onSave() {
close();
return true;
}
|