Help coderanch get a
new server
by contributing to the fundraiser
  • 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 ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

JComboBox automatically executes actionPerformed after combo items are refreshed??

Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to know how to stop the JComboBox from automatically executing the actionPerformed after the JComboBox items have been updated at runtime??
i,e the JComboBox items are refreshed after I click on a child node in a JTree.
For every click on a node in the JTree the JComboBox items are refreshed,but the actionPerformed event is also executing automatically. I need the JComboBox to wait for the user input after each refresh and not perform the event automatically as soon as it is refreshed.
Acetylsalicylic acid is aspirin. This could be handy too:
We need your help - Coderanch server fundraiser
    Bookmark Topic Watch Topic
  • New Topic