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 ...
BufferedImage screenshotOfApplet = ...;
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You could use
Robot.createScreenCapture(Rectangle bounds)– however, the applet would have to be signed to allow this to work once deployed.After comments –
If you just want the applet component –
You can create a BufferedImage and paint to it – something like this:
I’m not sure if this would require the applet to be signed or not…