GeeCON Prague 2014*
The moose likes Swing / AWT / SWT and the fly likes ScreenCapture Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "ScreenCapture" Watch "ScreenCapture" New topic
Author

ScreenCapture

rama krishnan
Ranch Hand

Joined: Mar 14, 2008
Posts: 68
Using the BufferdImage, Robot, and Rectangle class, I'm capturing the screen shot, but I cann't capture whole part of screen, because some part is hide by scrollbar

How can I capture the whole part of screen?


MRK
Andre Uhres
Greenhorn

Joined: Nov 23, 2008
Posts: 23
I'm not sure if I understand well the question.
If you mean to have an image of the component contained in a JScrollPane,
we may simply print it to the Graphics of a BufferedImage. Something like this:
rama krishnan
Ranch Hand

Joined: Mar 14, 2008
Posts: 68
Thank you very much
now I got the solution
its working properly

Thanks once more
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: ScreenCapture