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 / February 2007

Tip: Looking for answers? Try searching our database.

Using javax.swing.filechooser.FileSystemView

Thread view: 
thom.bishop@gmail.com - 23 Feb 2007 00:54 GMT
I have a question about using FileSystemView. On Windows I would like
to be able to obtain
a top level lists of folders (and files), such as one would see in
explorer with the "Desktop",
"MyComputer" including any mapped devices. When I use
FileSystemView.getRoots() I only
get the Desktop which if I do getFiles(), I get list of objects that
are on the Desktop. I'm not
get "My Computer" or any of the system Drives or devices, etc. I
believe the  FileSystemView
can be used to obtain all of the information that I would like, but I
don't see how it can be used
to accomplish this. Could someone please shed some light on this?

Thanks.

-- tb
thom.bishop@gmail.com - 23 Feb 2007 01:37 GMT
On Feb 22, 7:54 pm, thom.bis...@gmail.com wrote:
> I have a question about using FileSystemView. On Windows I would like
> to be able to obtain
[quoted text clipped - 13 lines]
>
> -- tb

Okay, upon doing some further digging I found that the two file that
had very strange looking
names where actually the "My Computer" and "My Network Places" system
folders. Need to use
getSystemDisplayName() instead of getName() to see this. I think that
clears things up, at least
for now.

-- tb


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.