This week's book giveaway is in the JDBC forum.
We're giving away four copies of Make it so: Java DB Connections & Transactions and have Marcho Behler on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JFileChooser and network drives Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JFileChooser and network drives" Watch "JFileChooser and network drives" New topic

JFileChooser and network drives

Matt Sloan

Joined: Aug 12, 2002
Posts: 7
Is is possible for a JFileChooser to display network drives if they exist, or am I limited to the drives on the local machine?
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15302

As far as JAVA is concerned, if a network drive is mapped to a drive letter (and I am talking about Windows here because I am not sure about Linux), then JAVA will see it as a local drive. So JFileChooser should allow you to browse into them.

GenRocket - Experts at Building Test Data
I agree. Here's the link:
subject: JFileChooser and network drives
It's not a secret anymore!