04-24-2012 03:49 PM
trying to close a popup screen as shown:
Ok.setChangeListener(new FieldChangeListener() {
public void fieldChanged(Field field, int context) {
two.deleteAll();
two.add(lockedtext);
power.setLabel("Unlock");
save.add(power);
choicewas = "Unlock";
pboptions[2] = "Unlock";
PowerButtonOptions.setChoices(pboptions);
String code = makenote.getText() + "";
contents[current] = encryption + code + coded;
locked = true;
close();
}
});
it does note close when I run this and I am wondering why. If I just have this,
Ok.setChangeListener(new FieldChangeListener() {
public void fieldChanged(Field field, int context) {
close()
}
});
it will close, why does putting the rest in effect it?
Solved! Go to Solution.
04-24-2012 08:46 PM
Presumably there's a runtime error, so close() isn't run.
To check, wrap the code above the close() in a try..catch.
04-24-2012 11:09 PM
no longer an issue, thanks!