Question

I need to enable users in my application to save a file into a shared folder. I suppose I could let them type the path and then check if it is really valid, but I´d prefer something more user-friendly. Is there a way to coax a JFileChooser into displaying only network clients and their shares?

Was it helpful?

Solution

Java as a platform neutral language doesn't allow you to access Windows specific services, so there is no way to do that.

But you can use a library like JCIFS (see this question: Get all shared directories on a remote Server) and build your own dialog which looks like JFileChooser.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top