Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Capture Mouse Pointer using java.awt.Robot?

843807Mar 23 2004 — edited Mar 28 2005
Hello,

I am working on a project in Java which requires broadcast screen captures. The purpose of the app would be defeated if the mouse pointer could not be captured as part of the screen. To my dismay, I have recently discovered that java.awt.Robot does not do screen captures which include the mouse pointer, nor does Sun offer an option in their API for such a thing. What can I do to achieve this functionality in Java? Is there a way I can alter the class, or extend it, to capture the mouse pointer?

Thanks,

-Tony
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2005
Added on Mar 23 2004
8 comments
754 views