aspose file tools*
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
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: 4658
    
    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