When I try with following code, it throws "IllegalArgumentException".
Please somebody help me. It's urgent.
Code:
public void focusChanged(Field field, int context) {
if (spinBoxStates== field) {
String sel = (String) spinBoxStates.get(spinBoxStates.getSelectedIndex() );
if (sel.equals("New York")) {
//I have to load all the cities of New York in second wheel if I select "New York" in first wheel
TextSpinBoxField desc = new TextSpinBoxField(NYcities);
spinBoxMgr.replace(spinBoxCities,desc);
//spinBoxCities = new TextSpinBoxField(NYcities);
//How to refresh the manager
}
else if(sel.equals("Washington")) {
//I have to load all the cities of Washington in second wheel if I select "Washington" in first wheel
}
}