• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable events and listeners - prevent multiple executions

 
olze oli
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

following problem:
i have a jtable which listens for events and when an event occurs, all listeners get a message.

the problem is, that this action gets executed often more than once when doubleclicking in an element in the jtable.
Is there any way to prevent this? eg. "if the user double clicked, drop all other events and only notice this one" ?
 
Darryl Burke
Bartender
Posts: 5128
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any way to prevent this? eg. "if the user double clicked, drop all other events and only notice this one" ?

Maybe something like the approach I suggested in
http://www.coderanch.com/t/529247/GUI/java/JFace-Tableviewer
 
olze oli
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks
i used the search but... somehow... didnt find that posting
 
Darryl Burke
Bartender
Posts: 5128
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Huh? the link doesn't work for you?
 
olze oli
Ranch Hand
Posts: 149
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the link worked for me and solved my problem. But before i posted, i used the search too and didnt find that link.

edit: my english is not the best ;)
 
Darryl Burke
Bartender
Posts: 5128
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, ok Kudos to you for trying the search!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic