This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Swing / AWT / SWT and the fly likes Get ID value on database from JCombo Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Get ID value on database from JCombo" Watch "Get ID value on database from JCombo" New topic
Author

Get ID value on database from JCombo

Tobias Leon
Greenhorn

Joined: Apr 17, 2012
Posts: 22

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 !!!


Murphy's Law
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4530
    
    5

To get better help sooner, post a SSCCE (Short, Self Contained, Compilable and Executable) example that demonstrates the problem.

luck, db
There are no new questions, but there may be new answers.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Get ID value on database from JCombo