This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Detecting double-click events  RSS feed

 
M Burke
Ranch Hand
Posts: 410
  • 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: 410
  • 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!