• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JComboBox Editor

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 !!
 
reply
    Bookmark Topic Watch Topic
  • New Topic