Package PamUtils

Class PamFolderChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class PamFolderChooser extends PamFileChooser
Chooser for selecting folders, which can show the files in the folder, but will only save if the folder is selected not a file. If a single file is selected, it can manage to select the path that contains that single file.
Author:
dg50
See Also:
  • Constructor Details Link icon

    • PamFolderChooser Link icon

      public PamFolderChooser()
    • PamFolderChooser Link icon

      public PamFolderChooser(String currentDirectoryPath)
    • PamFolderChooser Link icon

      public PamFolderChooser(File currentDirectory)
    • PamFolderChooser Link icon

      public PamFolderChooser(FileSystemView fsv)
    • PamFolderChooser Link icon

      public PamFolderChooser(File currentDirectory, FileSystemView fsv)
    • PamFolderChooser Link icon

      public PamFolderChooser(String currentDirectoryPath, FileSystemView fsv)
  • Method Details Link icon

    • approveSelection Link icon

      public void approveSelection()
      Overrides:
      approveSelection in class JFileChooser
    • isCheckParent Link icon

      public boolean isCheckParent()
      If this is set true, then even if a file is clicked on, the dialog will return the path to the folder that's holding that file.
      Returns:
      the checkParent
    • setCheckParent Link icon

      public void setCheckParent(boolean checkParent)
      If this is set true, then even if a file is clicked on, the dialog will return the path to the folder that's holding that file.
      Parameters:
      checkParent - the checkParent to set