• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
  • Piet Souris
  • Frits Walraven
  • Carey Brown

Showing server file directories through applets

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?
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u can't use JFileChooser with an applet.
We should throw him a surprise party. It will cheer him up. We can use this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic