Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / January 2006

Tip: Looking for answers? Try searching our database.

URL file chooser

Thread view: 
Robert M. Gary - 31 Jan 2006 17:20 GMT
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
Chris Smith - 31 Jan 2006 17:30 GMT
> 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


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.