This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes Java in General and the fly likes Getting global messages etc. Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Getting global messages etc." Watch "Getting global messages etc." New topic
Author

Getting global messages etc.

Cer Sir
Greenhorn

Joined: Jul 16, 2002
Posts: 1
HI. I'm trying to create a program that will allow the user to press the mouse left button anywhere on the screen, drag, and let go, and the area will be saved to a bitmap or Jpeg image.
Q: How do I capture the mouse moves and get these coordinates properly?
khella smith
Ranch Hand

Joined: May 06, 2002
Posts: 39
u might have to use the mosusemotionlistener's method called mousedragged and the mouselistener's method called mousepressed and mousereleased with the x and y coordinate methods from the mouseevent api to determine the exact point u want that's all i can say and hope it helps
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Getting global messages etc.
 
Similar Threads
Keyboard stops working!!
how many remaining?
WA #1.....word association
Your favorite cartoon character and cartoon?
Finanicial Crisis