0

combobox setmodel problem [closed]

asked 2013-01-25 13:56:49 +0800

apiarra gravatar image apiarra
25 3

updated 2013-01-25 16:31:32 +0800

sjoshi gravatar image sjoshi flag of India
3493 1 8
http://zkframeworkhint.bl...

Hello,

When i set a model to my combobox, i can see the different values loaded (when i open the combo) but the size of items present on my combo is always 0... In this way i cannot select an item (combobox.setSelectedIndex(0)) because i get an error...

i.e:

cboWaehrModel = kreGeschForm.getWaehrModelLst();
ListModelList model = new ListModelList(cboWaehrModel);
cmbWaehr.setModel(model);
cmbWaehr.setSelectedIndex(0);

note that when i will open combo i get 100 items... so item0 exist.

delete flag offensive retag edit

The question has been closed for the following reason "the question is answered, right answer was accepted" by sjoshi
close date 2013-02-08 06:38:59

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-01-25 15:18:45 +0800

mhj gravatar image mhj flag of Brazil
806 1 7

updated 2013-01-25 15:19:41 +0800

hello apiarra! I think the link it has an answer to your problem: combobox setSelectedIndex problem

link publish delete flag offensive edit

Question tools

Follow
2 followers

RSS

Stats

Asked: 2013-01-25 13:56:49 +0800

Seen: 36 times

Last updated: Jan 25 '13

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More