URL file chooser

R

Robert M. Gary

I would like to modify my project to allow customers to specify
configuration files with URL syntax rather than straight files to allow
more flexibility in accessing remote configuration options. On my
server side all worked very well but the GUI guys are not sure how to
approach this. I don't have much of any experience on the GUI side of
Java myself. I guess they are currently using a FileChooser widget to
allow the customer to choose the configuration file. Is there an
equivelent widget that works for URL syntax?

Thanks!
-Robert
 
C

Chris Smith

Robert M. Gary said:
I would like to modify my project to allow customers to specify
configuration files with URL syntax rather than straight files to allow
more flexibility in accessing remote configuration options. On my
server side all worked very well but the GUI guys are not sure how to
approach this. I don't have much of any experience on the GUI side of
Java myself. I guess they are currently using a FileChooser widget to
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.

--
www.designacourse.com
The Easiest Way To Train Anyone... Anywhere.

Chris Smith - Lead Software Developer/Technical Trainer
MindIQ Corporation
 
R

Robert M. Gary

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top