So, I usually try my best not to post things in forums without searching my brains out for solutions but here goes. I cannot figure out for the life of me why this exception is being thrown. I have some code here:
Code:
inputParameters = new ObjectChoiceField("Select Input Parameters", inputParametersChoice);
inputParameters.setChangeListener(new FieldChangeListener() {
public void fieldChanged(Field arg0, int arg1) {
try {
if(inputParameters.getSelectedIndex() == 0) {
p1Field.setText("Temperature: ");
p2Field.setText("Pressure: ");
}
else if(inputParameters.getSelectedIndex() == 1) {
p1Field.setText("Temperature: ");
p2Field.setText("Density: ");
}
}
catch(IllegalArgumentException e) {
e.printStackTrace();
}
}
}); Here what i'm trying to do is change the value of the text inside a basiceditfield when the value of the objectchoicefield, but every time it just throws that IllegalArgumentException...
Also on a different note, I was wondering if a table layout manager existed for the blackberry because I can't seem to find one. If not, how might i go about implementing one, I saw the Manager class but it went over my head.
And if you're curious this application is for computing thermodynamic properties of water and steam.
Thanks, Wayne