JCombobox return Customized index
Posted on 2006-04-26
Hi experts :)
What do I really need is a JCombobox but with little customization let me give U the story
I hava an (Area) lookup table in database and it has 2 fields
1 - area_id (index) for example 1,23,20,55,....
2 - Area (value) for example Faiha,Kaifan ....
let say that I got the the data from database to an array ok but how can I fill the JCombobox so the user select the (Value) of area and it returns the (index) !!! which is a (Customized index)