Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

mouse click  RSS feed

 
Garandi Garandi
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to do something if mouse has been clicked once (mouse pressed and mouse released) how to do it.
Thank you
Garandi
 
aminur rashid
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Implement the MouseListener class and override the

method.
In this method if you want to trap just a single mouse click do as

you can also use

methods
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!