How to set JComboBox index from my DB,
July 9, 2008 at 2:35 AM
I see JComboBox like a set of "index, text", like a table in my database. I wanna get the column ID from my table and put it in the "index" of my JComboBox, and get the column NAME from my table and put it in the "text" of my JComboBox. How can I do that? I tried do that with Vector but java don´t want it :P I can´t put index 1 before put index 0, and my table don´t have a ID 0. How can I do that? Thanks in advance.
View All Comments