ReSetting Jombo Box image

On my form I have a combobox cb1 with rendered images and text for user selection.  When the user clicks the cencel button I want to reset this combobox to the default setting image and text.  I have been trying without success.  I used cb1.setSelectedItem("string");  But nothing happens.  I tried call the image renderer I did at the opening but nothing happens.  What should I do?
Vanavah EdwardsAsked:
Who is Participating?
 
for_yanCommented:
If you want to set to selected exeisting item, then you can juse setSeletcedIndex(int) method,
say
setSelectedIndex(0);

0
 
for_yanCommented:
Waht means "I want to reset"?
Does it mean that you want to select one of the existing item in your list - or you want to re-draw all items in the dropdown?
0
 
Vanavah EdwardsAuthor Commented:
I tried itt and it is working.  Problem solved.  Thanks very much.  Closing session.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.