
-----------------------------------
leeberman
Sun Apr 10, 2005 2:23 pm

combo box help needed
-----------------------------------
how do u reset the value displayed in a combo box with code?

-----------------------------------
wtd
Sun Apr 10, 2005 2:32 pm


-----------------------------------
Always consult the API reference.

http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/JComboBox.html

I believe you're looking for the setSelectedIndex method.

-----------------------------------
leeberman
Sun Apr 10, 2005 5:03 pm


-----------------------------------
thanks...  i think it is the .setSelectedItem...  but thanks for mentioning that site
