how to set the selected item in combo box as displayed in java. please help me
manjupargavi
0
Newbie Poster
Recommended Answers
Jump to Postfrom the JComboBox documentation...
setSelectedIndex(int anIndex) Selects the item at index anIndex.
setSelectedItem(Object anObject) Sets the selected item in the combo box display area to the object in the argument.
All 3 Replies
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
murali_quest
-5
Newbie Poster
JamesCherrill
4,733
Most Valuable Poster
Team Colleague
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.