[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 231
  • Last Modified:

Desparate problem !

q-1 . I want to find screen resolution through applet ?
q-2.  I want to find a executable file on client machine if not found then down load from
        server and execute it. Everything should be done through applet.
0
hateli
Asked:
hateli
1 Solution
 
imladrisCommented:
Answer for question 1:  You can get the screen resolution via a toolkit function call.

Dimension d=Toolkit.getDefaultToolkit().getScreenSize();

As for question 2, a regular untrusted applet cannot access local storage for any purpose, either read or write. To do the kind of things you describe it would either have to be a trusted applet, or the browsers safeguards would have to be overridden.

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now