Hi!
I have a desktop application having heavyweight components (JxBrowser) in a JFrame. How can I make a snapshot from the GUI and save it to for example a png file?
Note: The method using Graphics2d and Component.paint()/paintAll()/print/printAll works only for lightweight components.
Any answers appreciated!
EDIT
I have already tried this:
robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
But I want the inner component to be captured...
EDIT
The situation seems to converge to this solution: if I have a bigger heavyweight component in my JFrame, so it is rendered on a JScrollPane then there exist no other method to get a snapshot of it programatically then to scroll it/screenshot it with screencapture?