Forums Register Login
Showing server file directories through applets
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?
u can't use JFileChooser with an applet.
Wink, wink, nudge, nudge, say no more ... https://richsoil.com/cards

This thread has been viewed 522 times.

All times above are in ranch (not your local) time.
The current ranch time is
May 23, 2018 11:01:43.