• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Showing server file directories through applets

 
Sean Mitchem
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm looking for a way to use the functionality of JFileChooser to show a directory on a web server through an applet. I want to allow the user to select a data file from a choice of data files on the web server. Eventually I want to enable the user to set-up their own directory structure for multiple data and configuration files.
JFileChooser seems to choke on references to file systems from a applet, even when the directory is a URL/directory. By choke I mean that I get java.security.AccessControlExceptions whenever I try to invoke a JFileChooser method (such as setFileFilter) that has been set to a URL directory.
I did something similar for HTML pages by using a JList and passing it a vector of pages available for viewing (the vector was built using a servlet), but I would prefer to use the GUI richness of the JFileChooser.
Any thoughts?
 
s srikanth
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u can't use JFileChooser with an applet.
srikanth
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic