How to select item in jComboBox
Posted
by jtnire
on Stack Overflow
See other posts from Stack Overflow
or by jtnire
Published on 2010-05-05T21:49:43Z
Indexed on
2010/05/05
21:58 UTC
Read the original article
Hit count: 190
Hi folks,
I have a jComboBox that I am populating with some objects. The objects are of a type which I have made myself, and include a String and an int. The object's toString method returns the String, which is displayed in the Combo Box.
Now, I wish to select an item in the Combo Box with code. How do I do this?
There are multiple items starting with the same letter
Thanks
© Stack Overflow or respective owner