Java applet on a site to take a screenshot?
<p>I want to do the following:</p>

<ol>
<li>Create a java applet without display and put it on my site. </li>
<li>When the user enters, he allows the applet to run and for him nothing changes (he does not see any screen from that applet). </li>
<li>When he clicks on a button, I want an onclick event to send the applet a message so it will take a screenshot of the clients screen. </li>
<li>Then, send the screenshot as encoded byte data back to javascript and I using AJAX will send it back to the server. </li>
<li>At the end on the server I will build an image from that data and save a .png or any other format on the server (using PHP).</li>
</ol>

<p>I need guidance in all of those stages.
Thanks a lot in advance.</p>

<p>EDIT:
The question is how it can be done and whether it can be done. When writing those stages I don't really know if it possible but I need somehow to take a screenshot of the clients page in my site.</p>
