• 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

Screen Capture using Applet ?

 
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sweet hello to all

i m newbie to java Applets and this Forum as well.
Please, any one tell me that how can i capture the client screen using 'awt.Robot.createScreenCapture' while writing this code inside myh applet and sends the resultant image to http webserver.

i have tried it, but some security issues in java Applets throws 'jawa.AWTPermission' exception.. i don't know how to get permissions from client before his/her screen capture.

I want to implement Desktop Sharing in LAN.
waiting....
best wishes
Waqas Dar
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to JavaRanch.

Because taking a screenshot captures potentially sensitive data, applets are not by default allowed to do that. The way around that is to digitally sign the applet, or have the user alter the local security policy. Both methods are described in HowCanAnAppletReadFilesOnTheLocalFileSystem
 
Waqas Tariq
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i am going to check it.

Bundle of Thanks, in advance
reply
    Bookmark Topic Watch Topic
  • New Topic