• Post Reply Bookmark Topic Watch Topic
  • New Topic

jComboBox Model  RSS feed

 
Sumair Ahmed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi.

I have a combobox and i have managed to get it to display someone's names from the database. I would like the unique value to be the primary key from the table and not the default 1,2,3 etc-This is because i wan't to use the primary key value to select more details from the database.

I have narrowed it down to the model. However, i spent hours yesterday trying to find how to do this with no luck.

Can anyone help please?
 
Sumair Ahmed
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's ok, i managed to do it. Just for future reference.

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!