BufferedImage « Applet « Java Swing Q&A





1. Obtaining a screen shot of an Applet?    stackoverflow.com

Given an Applet object, is it possible to programatically obtain a "screen shot" of the applet window (represented as say a BufferedImage)?

 JApplet applet = this;
 // ... code here ...
 ...