File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Robot().createScreenCapture() to capture 2nd monitor? 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 » Swing / AWT / SWT
Reply Bookmark "Robot().createScreenCapture() to capture 2nd monitor?" Watch "Robot().createScreenCapture() to capture 2nd monitor?" New topic
Author

Robot().createScreenCapture() to capture 2nd monitor?

Jon Camilleri
Ranch Hand

Joined: Apr 25, 2008
Posts: 659

This code snippet takes a screenshot of the screen, however it is noted that whilst I have two monitors, the screenshot is only generated for a single screen. Is it possible to modify the program to take a screenshot of both screens, not just my primary monitor?

I am currently using WinXP SP3.



Related links
1. Robot


Jon
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4164
    
    3

Have you read the API for Toolkit#getScreenSize(), which you use in your code? It tells you there how to obtain
Multi-screen aware display dimensions


luck, db
There are no new questions, but there may be new answers.
Rob Camick
Ranch Hand

Joined: Jun 13, 2009
Posts: 1788
    
    2
Finally, an actual SSCCE was posted with a question

Unfortunately I don't have access to a multimonitor setup so I can't help. Maybe next time.
 
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: Robot().createScreenCapture() to capture 2nd monitor?
 
Similar Threads
How to Save applet page as a JPG file
Need Help on Remote Host Screen Capture
get screen of another application
How to invoke a private class after clicking the button that work?
showing applet embedded in jsp