Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
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


Win a copy of The Software Craftsman this week in the Agile forum!
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
 
Have you tried LearnNowOnline? http://www.learnnowonline.com/
 
subject: ScreenCapture