public static JFileChooser userFileChooser(String filter,String suffix1,String suffix2){
  JFileChooser fc=new JFileChooser(FileUtil.getUserFilesPath());
  NoArchiveFileFilter filt=new NoArchiveFileFilter(filter);
  if (suffix1 != null) {
    filt.addExtension(suffix1);
  }
  if (suffix2 != null) {
    filt.addExtension(suffix2);
  }
  fc.setFileFilter(filt);
  return fc;
}

public static JFileChooser userFileChooser ( String filter , String suffix1 , String suffix2 ) { JFileChooser fc = new JFileChooser ( FileUtil . getUserFilesPath ( ) ) ; NoArchiveFileFilter filt = new NoArchiveFileFilter ( filter ) ; if ( suffix1 != null ) { filt . addExtension ( suffix1 ) ; } if ( suffix2 != null ) { filt . addExtension ( suffix2 ) ; } fc . setFileFilter ( filt ) ; return fc ; }
provide a jfilechooser initialized to the default user location , and with a default filter .
