Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JComboBox automatically executes actionPerformed after combo items are refreshed??  RSS feed

sharath kv
Posts: 20
  • Mark post as helpful
  • send pies
  • 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.
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!