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。