I am trying to store a combo box's item index into an arraylist and am getting a compiler error. I tried several different approaches and none worked.
1 -
aSoilIndex.add(newCounter, cboSoil.getSelectedIndex());
2 -
aSoilIndex.add(newCounter, (int)
cboSoil.getSelectedIndex());
3 -
int SoilIndextemp = (int) cboSoil.getSelectedIndex();
aSoilIndex.add(newCounter, SoilIndextemp);
Any suggestions will be appreciated. Thanks Ronnie
1 -
aSoilIndex.add(newCounter, cboSoil.getSelectedIndex());
2 -
aSoilIndex.add(newCounter, (int)
cboSoil.getSelectedIndex());
3 -
int SoilIndextemp = (int) cboSoil.getSelectedIndex();
aSoilIndex.add(newCounter, SoilIndextemp);
Any suggestions will be appreciated. Thanks Ronnie