In Swing's JFileChooser, the local drives are accessible but not the mapped network drives (on Windows platform). How can I see the network drives?

Sandip Chitale

First of all I do think that JFileChooser does show the network drive if it was mapped (i.e. has a drive letter) before the JFileChooser was created.

What it does not show is the UNC based names like emote_machine emote_share_name or the network neighbourhood.

The following FAQ also may be related to what you are looking for.

http://www.jguru.com/jguru/faq/view.jsp?EID=224336

You call always augment the functionality of JFileChooser using the Accessory mechanism -

http://java.sun.com/products/jdk/1.2/docs/api/javax/swing/JFileChooser.html#setAccessory(javax.swing.JComponent)

or

Installing the a custom FileSystemView

http://java.sun.com/products/jdk/1.2/docs/api/javax/swing/JFileChooser.html#setFileSystemView(javax.swing.filechooser.FileSystemView)

0 Comments  (click to add your comment)
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

About | Sitemap | Contact