I know that it is possible to capture lightweight Swing component picture by calling paint(Graphics g)
method on the BufferedImage.getGraphics()
instance.
Like here: Swing: Obtain Image of JFrame
Is it possible to grab AWT component's contents as an Image
?
So far, I think of java.awt.Robot
solution only:
- Get AWT component bounds
- Make screenshot with specific bounds.