Package PamUtils

Class PamFileChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PamFileChooser extends JFileChooser
Modified file/folder chooser for use throughout PAMGuard which by default will open in the folder containing the psfx or database file, rather than user.documents
Author:
dg50
See Also:
  • Constructor Details

    • PamFileChooser

      public PamFileChooser()
    • PamFileChooser

      public PamFileChooser(String currentDirectoryPath)
      Parameters:
      currentDirectoryPath -
    • PamFileChooser

      public PamFileChooser(File currentDirectory)
      Parameters:
      currentDirectory -
    • PamFileChooser

      public PamFileChooser(FileSystemView fsv)
      Parameters:
      fsv -
    • PamFileChooser

      public PamFileChooser(File currentDirectory, FileSystemView fsv)
      Parameters:
      currentDirectory -
      fsv -
    • PamFileChooser

      public PamFileChooser(String currentDirectoryPath, FileSystemView fsv)
      Parameters:
      currentDirectoryPath -
      fsv -
  • Method Details

    • setSelectedFile

      public void setSelectedFile(File file)
      Override this so that when given a file, if the file doesn't exist, it tries to at least start in the same folder, or if it's a new config and file is null, it starts in the folder containing the psfx, not user.home
      Overrides:
      setSelectedFile in class JFileChooser
    • setCurrentDirectory

      public void setCurrentDirectory(File dir)
      Overrides:
      setCurrentDirectory in class JFileChooser