开发者

JFileChooser and browsing networked machines [closed]

开发者 https://www.devze.com 2022-12-23 00:45 出处:网络
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.

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 question

I 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消