Class WindowsAltFileSystemView

java.lang.Object
javax.swing.filechooser.FileSystemView
org.apache.batik.apps.svgbrowser.WindowsAltFileSystemView

class WindowsAltFileSystemView extends FileSystemView
Work around FileSystemView implementation bug on the Windows platform. See: Using JFileChooser in WebStart-deployed application
Version:
$Id: WindowsAltFileSystemView.java 1831635 2018-05-15 13:33:47Z ssteiner $
  • Field Details

  • Constructor Details

    • WindowsAltFileSystemView

      WindowsAltFileSystemView()
  • Method Details

    • isRoot

      public boolean isRoot(File f)
      Returns true if the given file is a root.
      Overrides:
      isRoot in class FileSystemView
    • createNewFolder

      public File createNewFolder(File containingDir) throws IOException
      creates a new folder with a default folder name.
      Specified by:
      createNewFolder in class FileSystemView
      Throws:
      IOException
    • isHiddenFile

      public boolean isHiddenFile(File f)
      Returns whether a file is hidden or not. On Windows there is currently no way to get this information from io.File, therefore always return false.
      Overrides:
      isHiddenFile in class FileSystemView
    • getRoots

      public File[] getRoots()
      Returns all root partitians on this system. On Windows, this will be the A: through Z: drives.
      Overrides:
      getRoots in class FileSystemView