Class DynamicExtensionFileChooser

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible

public class DynamicExtensionFileChooser extends JFileChooser
The DynamicExtensionFileChooser class allows the user to select a file. The chooser sets up various extra features in a normal file chooser to filter for certain file types, and changes the file name according to the selected file type.
Since:
3.1.7
Author:
Peter Hollemans
See Also:
  • Constructor Details

    • DynamicExtensionFileChooser

      public DynamicExtensionFileChooser(Map filterMap)
      Creates a new chooser with specified filters.
      Parameters:
      filterMap - the map of filter descriptions to filter extensions. Each key in the map is a String respresenting a filter description, for example "JPEG file". Each value in the map is the corresponding list of extensions to use for files as a String[] object, for example "jpg".
  • Method Details

    • main

      public static void main(String[] argv)
      Tests this class.
      Parameters:
      argv - the array of command line parameters.