setSelectedIndex « JComboBox « Java Swing Q&A





1. jCombobox - setSelectedIndex    forums.oracle.com

Well, what if i wanted to use the selected item to select something from the database. I have peoples names displayed with a special unique number containing the primary key. Then when the user changed the combobox, i could use the selected primary key in my sql statement to select the details. It's possible in every language i have ever used ...