JComboBox internal value ?
Posted on 2003-03-11
I've a JComboBox, which gets populated from the database with (say)
employee names. When the user selects a employee, i need to get the employee code of that person.
Since, employee name is not unique, i can't get the employee
code from the employee name selected.
Now, consider the following html code
<option value="EmpCode">Employee Name</option>
There can be some internal representation for each value. Is the
same kind of thing possible in JComboBox ?
Thanks in Advance