A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Badass: Making Users Awesome
this week in the
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 traversal problem
JCombo Box Problem
JCombo Box And JTable
JCombo box inside a JTable Cell?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015