• Post Reply Bookmark Topic Watch Topic
  • New Topic

ListSelectionListener got fired twice (mousePressed and mouseReleased)

 
Jacky Luk
Ranch Hand
Posts: 634
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I make it happen once only? Let's say EditSales just appear after mouse is released?
Thanks
Jack

 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Use ListSelectionEvent.getValueIsAdjusting() to figure out if the selection is done or in progress
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!