File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Taking screenshot with java applet using java robot class not working
Sagar Singh B
Joined: Apr 18, 2011
Jul 06, 2011 01:27:37
I am using the
to take screenshot of the web browser using the java's robot class.
Robot objRobot = new Robot ();
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 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
Madhan Sundararajan Devaki
Joined: Mar 18, 2011
Jul 19, 2011 03:23:23
I guess, this should boil down to the fact that, JDK for Mac OS has some bugs when it comes to image processing.
Not many get the right opportunity !
I agree. Here's the link:
subject: Taking screenshot with java applet using java robot class not working
Mac OSX Tomcat config
Taking screenshot using java robot class not woring when pc is locked.
Auto-Install JAI on a mac
Socket Permissions Problem using Java applet on Windows but not on Mac
Taking screenshot of JSP page Using java
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014