Class BasicFileChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class BasicFileChooser extends JFileChooser
A JFileChooser that attempts to do something useful with windows shortcuts. Currently (1.4.1) Java just deals with these as simple files, rather than a pointer to another file or directory (shortcuts are files that contain information about the file they are pointing at). This attempts to spot these files, open them and then set either the selected file or directory to the one the shortcut contains.

The original code was copied from Bug Id: 4356160 on the SUN web site so is also copyright SUN.

This class originally made use of the non-standard class sun.awt.shell.ShellFolder to do some cleverer things with Windows .lnk files. Since use of that non-standard class caused build problems with some java versions, references to that class, including the corresponding functionality, have been removed. That probably means there is no point in using this class any more, and client code should just use JFileChooser instead. It's possible that the underlying problem has been fixed in any case since Java 1.4.1.

Version:
$Id$
Author:
Peter W. Draper, Mark Taylor
See Also:
  • Constructor Details

    • BasicFileChooser

      public BasicFileChooser()
      Construct a default instance.
    • BasicFileChooser

      public BasicFileChooser(boolean home)
      Construct a instance with a choice of default directory. If home is true then the users home directory is selected, otherwise the process default directory is selected.
    • BasicFileChooser

      public BasicFileChooser(String defaultDirectory)
      Construct a instance with a choice of default directory.
  • Method Details