• Post Reply Bookmark Topic Watch Topic
  • New Topic

Detecting double-click events

 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a jList I want to have preform a task if the user double-clicks an entry. But I only see a mouseClicked(MouseEvent e) which fires with a single click.
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can do it with the following code:



Hope that helps. By the way, in case you weren't aware, we do have a Search Function. We enjoy answering all sorts of questions, but sometimes searching the forum might give you an answer sooner than waiting on a reply.
 
M Burke
Ranch Hand
Posts: 406
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Gregg for both tips
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!