Taking screenshot with java applet using java robot class not working

Discussion in 'Java' started by sagngh8, Jul 6, 2011.

  1. sagngh8

    sagngh8 New Member

    Joined:
    Jul 6, 2011
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    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

    Thanks sagar.
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice