JFileChooser and browsing networked machines [closed]
We don’t allow questions seeking recommendations fo开发者_如何学Gor books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this questionI am working on a little program that needs the ability to let users browse files and directories on networked machines as well as the local filesystem. I made the mistake of developing this component on a Windows machine... it worked fine there, but hid the fact that JFileChooser doesn't really "see" networked drives. On Windows, the "Network Neighborhood" shows up in JFileChooser. But apparently this is not typical, as networked drives are not Files.
When I added the chooser component to my program and tested it on a couple of Linux machines, I discovered what I should have already known... JFileChooser doesn't browse the network. So now I am at a crossroads, and could really use some advice. Is there a (Java) alternative I should be using? Or should I keep working with JFileChooser to coerce it into the behavior I need?
This might help.
精彩评论