• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

using java.awt.robot with Applet

 
Venkata Kiran
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hai All,
I would like to know if it is possible to capture a snapshot of
"an applet with an image on it" using Robot class and save the snapshot back to the server from which the applet is loaded.

When i try to do this i get java.security.AccessControl Exception : access denied ( java.awt.AWTPermission createRobot) Exception.
Thank You.
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You won't be able to do this without a digitially signed applet; granting an applet use of Robot is granting it full control of your machine, so obviously applets aren't allowed to use it by default!
 
Venkata Kiran
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You, but I am not supposed to use a signed applet.


Since i must capture only applet part from browser and send it to the server from which it is loaded i am not permitted signed applet.

So is there any round about way of doing the same?

I think my requrement is just like capturing an image from a paint brush application.
can anyone direct me to any link using PixelGrabber for this type of application?

[ April 11, 2006: Message edited by: Kiran Kumar ]
[ April 11, 2006: Message edited by: Kiran Kumar ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic