![]() |
Sponsored Link •
|
Advertisement
|
Advertisement
|
This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.
Message:
Mouse pressed event will always occurs before mouse clicked. I would suggest you to go by only one way. However, you can do your way too. In mouse pressed event store the x, y coordinates and a flag that mouse pressed occurred. In mouse clicked just compare x, y with x, y stored from mouse pressed. If they are same it means you have to go by mouse clicked event else you have to go by mouse pressed and released . Thanx Replies: |
Sponsored Links
|