JavaTM 2 Platform
Standard Ed. 6

类 javax.swing.filechooser.FileSystemView
的使用

使用 FileSystemView 的软件包
javax.swing 提供一组“轻量级”(全部是 Java 语言)组件,尽量让这些组件在所有平台上的工作方式都相同。 
javax.swing.filechooser 包含 JFileChooser 组件使用的类和接口。 
 

javax.swing 中 FileSystemView 的使用
 

返回 FileSystemView 的 javax.swing 中的方法
 FileSystemView JFileChooser.getFileSystemView()
          返回文件系统视图。
 

参数类型为 FileSystemView 的 javax.swing 中的方法
 void JFileChooser.setFileSystemView(FileSystemView fsv)
          设置为访问和创建文件系统资源(如查找软驱和获得根驱动器列表),JFileChooser 所使用的文件系统视图。
protected  void JFileChooser.setup(FileSystemView view)
          执行公共的构造方法初始化和设置。
 

参数类型为 FileSystemView 的 javax.swing 中的构造方法
JFileChooser(File currentDirectory, FileSystemView fsv)
          使用给定的当前目录和 FileSystemView 构造一个 JFileChooser。
JFileChooser(FileSystemView fsv)
          使用给定的 FileSystemView 构造一个 JFileChooser。
JFileChooser(String currentDirectoryPath, FileSystemView fsv)
          使用给定的当前目录路径和 FileSystemView 构造一个 JFileChooser。
 

javax.swing.filechooser 中 FileSystemView 的使用
 

返回 FileSystemView 的 javax.swing.filechooser 中的方法
static FileSystemView FileSystemView.getFileSystemView()
           
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见

版权所有 2008 Sun Microsystems, Inc. 保留所有权利。请遵守GNU General Public License, version 2 only。