Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox Editor  RSS feed

Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a combo box which i am populating through the keys of a Hashtable.If I keep the combo box editable , the newly entered value must be entered in the Hashtable in place of the old one.But when i edit the old value,the combo view does not get modified.I also tried implementing a custom editor by extending the javax.swing.plaf.basic.BasicComboBoxEditor class.But even this does not seem to work as the old value does not seem to go away.
Please help me out.Any suggestions on how to go about designing a custom editor for a combo box will be welcome.
Thanks in advance.
Come on in !! Drinks are on the house in the Big Moose Saloon !!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!