Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Applet Local File Security

1 view
Skip to first unread message

Garth Williams

unread,
Feb 4, 2004, 4:03:38 AM2/4/04
to
Hi,

Using a signed applet when I call java.awt.FileDialog to select a file it
works fine, but when I call javax.swing.JFileChooser to select multiple
files I get this:

java.lang.Exception: java.security.AccessControlException: access denied
(java.util.PropertyPermission user.dir read)
at sun.plugin.com.DispatchImpl.invokeImpl(Unknown Source)
at sun.plugin.com.DispatchImpl$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.plugin.com.DispatchImpl.invoke(Unknown Source)

Any ideas about what might be causing this?
Why would the awt version work, but not the swing?
Is there a way to get multi file select using java.awt.FileDialog or
similar?

Garth.


0 new messages