> I would like to modify my project to allow customers to specify
> configuration files with URL syntax rather than straight files to allow
[quoted text clipped - 4 lines]
> allow the customer to choose the configuration file. Is there an
> equivelent widget that works for URL syntax?
It's called JOptionPane.showInputDialog.
There is no way to provide a better interface for URLs, because there's
no reliable way to get directory listings for an arbitrary URL. For
example, if the URL is http, requesting a directory will typically
return the index.html file in that directory, rather than a listing of
the directory contents.

Signature
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.
Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
Robert M. Gary - 31 Jan 2006 17:36 GMT
> There is no way to provide a better interface for URLs, because there's
> no reliable way to get directory listings for an arbitrary URL.
That's fine, even if it only allowed the user to choose from files but
allowed them to type in http, ftp, etc. The main issue right now is
that standard file choosing widget wont' recognize the syntax of
"file:".
-Robert