The default combo box renderer simply invokes the toString() method of the Object contained in the model. So when you add a String to the model you see the value of the String because thats what the toString method returns.
If you are storing a Personel Object in the model then you have two choices:
a) add a toString() method to the Personel class b) create a custom renderer to display a property from the Personel class.
Read the JComboBox API and you will find a link to the Swing tutorial on "How to Use Combo Boxes" which provides an example of a custom renderer.
camickr
2009-07-05 22:30:57