I have a JComboBox
of type myclass
. I use CustomListRender
to display one of the attributes of myclass
, and it works fine.
Then I set myCombobox.setEditable(true)
. JComboBox
becomes editable, but by default text is set to somthing like this in combobox
:
com.mypackagename.myclass
Can anyone tell me how to solve this problem?
Thanks in advance.