Forum Stats

  • 3,824,977 Users
  • 2,260,447 Discussions
  • 7,896,368 Comments

Discussions

Taking screenshot with java applet using java robot class not working

873616
873616 Member Posts: 1
edited Jul 6, 2011 7:46AM in Java Programming
Hi Everyone,

I am using the java applet to take screenshot of the web browser using the java's robot class.
Robot objRobot = new Robot ();
BufferedImage objBufferedImage = objRobot.createScreenCapture(objRectArea);

The thing work good in windows system taking screenshot but in case of mac osx i get the blank image.When i check the event viewer in mac osx i get the following error.

invalid context
invalid pixel format
CoreAnimation: rendering error 506

The problem is coming for all the browser safari,firefox and chrome.My applet is signed applet.


What might be the reason.An early reply is very valuable.

My machine configuration is as follows.

OS : MAC OSX
Version : 10.6.4

Is that a system level issue , java plugin issue?I'am confused with this error.

Thanks sagar.

Answers

This discussion has been closed.