• Post Reply Bookmark Topic Watch Topic
  • New Topic

item does not changed in JcomboBox  RSS feed

 
ptit clou
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
I use tje JcomboBox.
When the item does not change, itemStateChanged does not do nothing.
I would like to know that Jcombobox has been manipulated, although that there no was change of item selected.
how to make?

thanks

benoit
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Add an ActionListener to the combobox... I believe that the actionPerformed() method will be called whenever a selection is made...

-Nate
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!