I have a third party Java applet that I am going to embed in my webpage but I don't have access to the applet code.
But I want to create a button on my page on clicking which will create a screenshot of the applet (but not the whole screen). I tried using the Robot class but that would take the whole screen which I don't want
BufferedImage screencapture = new Robot().createScreenCapture(
new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()) );
I was looking over the net and found code but those require access to the applet which I don't have.
Is it possible to do it using java? If so, how?