File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies 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: 4522
    
    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
 
Similar Threads
JCombo Box Problem
JCOMBO Box traversal problem
JCombo box inside a JTable Cell?
JCombo Box And JTable
JCombo model?