Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

use JFilechooser in an applet

  Asked By: Nichole    Date: May 09    Category: Java    Views: 1795
  

I want to develope an applet and I'd like to use the
jfilechooser, but when I try to execute the applet a get a security
message error. I tried modifying the .java.policy file but I really
dont know how to grant the apropiate permission. I create
a .java.policy just like this:

grant codeBase "file:/d:-" {
permission java.io.FilePermission "<<ALL FILES>>", "read";
permission java.io.FilePermission "<<ALL FILES>>", "write";
permission java.util.PropertyPermission "user.home", "read";
permission java.util.PropertyPermission "user.dir", "read";
};

I'm programming with Forte for Java release 3.0 and JDK1.4

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on use JFilechooser in an applet Or get search suggestion and latest updates.




Tagged: