Solved

Desparate problem !

Posted on 1998-04-23
1
211 Views
Last Modified: 2010-04-16
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
Comment
Question by:hateli
1 Comment
 
LVL 16

Accepted Solution

by:
imladris earned 50 total points
ID: 1219477
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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
tomcat startup error 5 136
JavaFX TableView not displaying correctly 3 109
ejb entity bean example 2 38
Eclipse Help Java EE 5,6,7 Documentation, why not Java EE 8 8 45
Java contains several comparison operators (e.g., <, <=, >, >=, ==, !=) that allow you to compare primitive values. However, these operators cannot be used to compare the contents of objects. Interface Comparable is used to allow objects of a cl…
Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question