• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Get ID value on database from JCombo

 
Tobias Leon
Greenhorn
Posts: 22
Eclipse IDE Java Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there !!!

I have a JCombo with names, each name has a ID in my database, I need to get that ID each time I pick a item from my JCombo.

I try something like this:


But it does not work, something about not cast CPerson from String.

Thanks !!!
 
Darryl Burke
Bartender
Posts: 5126
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic