Class FileTree

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

public class FileTree extends JTree
Creates a javax swing JTree object which represents the structure of a given sub-tree in a file system. The nodes in the tree represent the directories and non-directory files, and are labeled with their local names.
See Also:
  • Constructor Details

  • Method Details

    • make

      public static FileTree make(File f)
      Service Access Point: Create a FileTree representing the file system structure.
      Parameters:
      f - the point in the file system where the displayed tree starts
      Returns:
      an instance which starts at the given directory.
      Throws:
      IllegalArgumentException - if file is not a directory.