This content has been marked as final. Show 3 replies
1) store BufferedImage into Array1 person found this helpful
2) better would be put image as Icon/Image (http://docs.oracle.com/javase/tutorial/uiswing/components/icon.html) to the JLabel (http://docs.oracle.com/javase/tutorial/uiswing/components/label.html)
Don't create a screen capture. Construct a BufferedImage the same size as the panel and of an appropriate type, obtain its Graphics and call paintComponent(...) of the panel with the Graphics of the BufferedImage. This paints the panel to the BufferedImage.
Moving to Java2D for better topic alignment.
thanks a lot.