JFileChooser浏览远程文件系统 [英] JFileChooser browsing a remote file system

查看:130
本文介绍了JFileChooser浏览远程文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试实现一个JFileChooser,允许用户通过ftp选择远程系统上的文件。

I am trying to Implement a JFileChooser that allows a user to select files on a remote system via ftp.

我读过的所有内容都表明这可以通过扩展FileSystemView以便所有文件系统方法(getFiles等)被覆盖并在ftp上路由。

Everything I've read says this can be accomplished by extending FileSystemView so that all the file system methods (getFiles, etc) are overridden and routed across ftp.

我没有任何运气实现这一点,因为FileSystemView似乎仍然会调用本地函数。

I haven't had any luck implementing this, as FileSystemView appears to still be calling local functions.

任何人都可以确认这可以做到和/或指向一个好的方向吗?

Can anyone confirm that this can be done and/or point me in a good direction?

推荐答案

尝试 vfsjfilechooser

这篇关于JFileChooser浏览远程文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆