Sandbox Security Model
It would be dangerous to allow applets, which are typically downloaded from the Internet, to read and write files on a client computer or access other system resources. For example, what would happen if you downloaded a malicious applet? The Java platform uses the sandbox security model to prevent code that is downloaded to your local computer from accessing local system resources, such as files. Code executing in the "sandbox" is not allowed to "play outside the sandbox." For information on security and applets, visit
developer.java.sun.com/developer/technicalArticles/Security/Signed
For information on the Java 2 Platform security model, visit
java.sun.com/j2se/5.0/docs/guide/security/spec/security-spec.doc1.html