Validate the size of a TextField
import com.planstick.business.User;
import com.planstick.event.PlanStickEvent;
import com.planstick.event.PlanStickEventListener;
import com.planstick.main.OC;
import com.planstick.net.Session;
import com.planstick.utils.Record;
import javax.microedition.lcdui.*;
public class LoginSettings extends Form implements CommandListener{
private TextField pasw = null;
private TextField login = null;
private Command save = new Command(”Save”, Command.OK, 0);
private Command back = new Command(”Back”, Command.BACK, 1);
private Command ok = new Command(”OK”, Command.ITEM, 1);
public LoginSettings(User user) {
super(”");
if(user == null){
login = new TextField(”Login:”, “”, 30, TextField.ANY);
pasw = [...]
RSS