Funny enough, there is no syntactic error.
public TextField txtPIN = new TextField ("PIN", null, 4, TextField.PASSWORD | TextField.NUMERIC | TextField.SENSITIVE);
public MobilityForm(String title, Display display, Displayable next, String cmdName, MIDlet m) {
setCommandListener(this);
this.setItemStateListener(this);
}
public void itemStateChanged(Item item) {
// never gets here
if (item instanceof TextField) {
TextField field = (TextField) item;
if(field.getLabel().equals("PIN")){
cust.GetCard().setPin(this.txtPIN.getString());
}
}
}
have you try to implement ItemStateListener?
(in your next posts, use th f***** formatting tips (http://forum.java.sun.com/help.jspa?sec=formatting) )
for example,
it is better to read code formatted like that
...
// oh yes it is easier to read me !!!
public void easierToReadMe(String threadString){
easyToDisplay(threadString);
// ...
}
...
than this code:
...
// oh yes it is easier to read me !!!
public void easierToReadMe(String threadString){
easyToDisplay(threadString);
// ...
}
...