Solved

Desparate problem !

Posted on 1998-04-23
1
180 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
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Java 1603 Error 2 42
Issues installing SSL certificate into Apache Tomcat 3 70
count8 challlenge 13 84
unix in java example 9 37
INTRODUCTION Working with files is a moderately common task in Java.  For most projects hard coding the file names, using parameters in configuration files, or using command-line arguments is sufficient.   However, when your application has vi…
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…
This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now