It has been a while, but I think something in the Robot class will help you.
EDIT:
In the Robot API:
public BufferedImage createScreenCapture(Rectangle screenRect)
Creates an image containing pixels read from the screen. This image does not include the mouse cursor.
Parameters:
screenRect - Rect to capture in screen coordinates
Returns:
The captured image
source
share