• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using java.awt.robot with Applet

 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic