This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • 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: 5148
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