File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
EJB 3 in Action
this week in the
EJB and other Java EE Technologies
Swing / AWT / SWT
Get ID value on database from JCombo
Joined: Apr 17, 2012
May 10, 2012 08:57:18
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:
CPerson person = (CPerson) JCombo.getSelectedItem(); String id = person.getID();
But it does not work, something about not cast CPerson from
Joined: May 03, 2008
May 10, 2012 11:15:39
To get better help sooner, post a
SSCCE (Short, Self Contained, Compilable and Executable)
example that demonstrates the problem.
There are no new questions, but there may be new answers.
I agree. Here's the link:
subject: Get ID value on database from JCombo
JCombo Box Problem
JCOMBO Box traversal problem
JCombo box inside a JTable Cell?
JCombo Box And JTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014