* @return the new file chooser
*/
public static JFileChooser makeImageFileChooser() {
JFileChooser fileChooser = new JFileChooser(new File("."));
ExampleFileFilter fitsFilter = new ExampleFileFilter(new String[]{
"fits", "fits.gz", "fits.Z", "hfits"}, "FITS Image Files");
fileChooser.addChoosableFileFilter(fitsFilter);
ExampleFileFilter jpgFilter = new ExampleFileFilter(new String[]{
"jpg", "jpeg"}, "JPEG Compressed Image Files");
fileChooser.addChoosableFileFilter(jpgFilter);
ExampleFileFilter gifFilter = new ExampleFileFilter("gif", "GIF Image Files");
fileChooser.addChoosableFileFilter(gifFilter);
ExampleFileFilter tifFilter = new ExampleFileFilter(new String[]{"tif", "tiff"}, "TIFF Image Files");
fileChooser.addChoosableFileFilter(tifFilter);
ExampleFileFilter ppmFilter = new ExampleFileFilter(new String[]{"ppm", "png", "pgm"}, "PPM Image Files");
fileChooser.addChoosableFileFilter(ppmFilter);
fileChooser.setFileFilter(fitsFilter);
return fileChooser;