Class IrisFileChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class IrisFileChooser
extends JFileChooser
A custom file chooser that uses native File Dialog for Mac OS and IrisFileChooser for Windows / Linux. The native file dialog is not uses for windows because it does not support file filtering. Note that this only supports file selection. It does not support selecting directories. It also only supports single file selection.
See Also:
Serialized Form
  • Constructor Details

    • IrisFileChooser

      public IrisFileChooser()
      Constructs a IrisFileChooser pointing to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix.
    • IrisFileChooser

      public IrisFileChooser​(String currentDirectoryPath)
      Constructs a IrisFileChooser using the given path. Passing in a null string causes the file chooser to point to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix.
      Parameters:
      currentDirectoryPath - a String giving the path to a file or directory
    • IrisFileChooser

      public IrisFileChooser​(File currentDirectory)
      Constructs a IrisFileChooser using the given File as the path. Passing in a null file causes the file chooser to point to the user's default directory. This default depends on the operating system. It is typically the "My Documents" folder on Windows, and the user's home directory on Unix.
      Parameters:
      currentDirectory - a File object specifying the path to a file or directory
    • IrisFileChooser

      public IrisFileChooser​(FileSystemView fsv)
      Constructs a IrisFileChooser using the given FileSystemView.
    • IrisFileChooser

      public IrisFileChooser​(File currentDirectory, FileSystemView fsv)
      Constructs a IrisFileChooser using the given current directory and FileSystemView.
    • IrisFileChooser

      public IrisFileChooser​(String currentDirectoryPath, FileSystemView fsv)
      Constructs a IrisFileChooser using the given current directory path and FileSystemView.
  • Method Details