I have a transparent jframe that has scrolling text on it, and I need to capture just the jframe and not whats behind it. At first, java.awt.Robot looked promising, but it doesn't capture only the graphics context of the jframe. Maybe somebody knows a portion of the API that could help with this...
You can
Code:
BufferedImage image = new BufferedImage(frame.getWidth(), frame.getHeight(), BufferedImage.TYPE_INT_RGB);
frame.print(image.getGraphics());