Package smile.swing

Class FileChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class FileChooser extends JFileChooser
File chooser for with file/images preview. A simple file filter based on file extensions is also provided.
See Also:
  • Constructor Details

    • FileChooser

      public FileChooser()
      Constructor.
  • Method Details

    • getInstance

      public static FileChooser getInstance()
      Returns the shared file chooser instance. In general, an application should have only one file chooser so that it always points to the recent directory.
    • getExtension

      public static String getExtension(File f)
      Returns the file name extension in lower case.
      Parameters:
      f - a file.
      Returns:
      the file name extension in lower case.