Applet Files and Security
It is important to understand that applets have security restrictions that prevent them from writing files under normal circumstances. More specifically, if an applet is not signed with a digital signature then you are not allowed to write files.
If you try to create a FileWriter
object in an applet that is not signed it will trigger a security exception.
Digitally signing an applet will solve the problem, however.