What gives your applet the right to read/write to the user's local machine? If your applet were on the internet and I accessed it, would I want you to access my file system any way you want to? No. That is why it is denied.