• Post Reply Bookmark Topic Watch Topic
  • New Topic

Event - Handling  RSS feed

 
Madhukar Ojha
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my proram , I have 3 JComboboxes for day , month ,year respectively .
In which , day and month have registered for ItemListener .
When I click day once , itemStateChanged(ItemEvent ie) is invoked more than once .
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> itemStateChanged(ItemEvent ie) is invoked more than once .

once for de-selection, again for selection.

use getStateChange() to determine the one you want
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!