A: 

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
+1  A: 

you query appears incorrect, not sure what your mappings are but try something more like these:

    Query sorgu = em.createQuery("select p from Personel p,Unvan u where p.unvanID = u.unvanID and u.unvanID=:id");

or

    Query sorgu = em.createQuery("from Personel p where p.unvanID=:id");
objects
thanx man u r solved my problem.
Ibrahim AKGUN