public boolean removeChoosableFileFilter(FileFilter f){
  int index=filters.indexOf(f);
  if (index >= 0) {
    if (getFileFilter() == f) {
      FileFilter aaff=getAcceptAllFileFilter();
      if (isAcceptAllFileFilterUsed() && (aaff != f)) {
        setFileFilter(aaff);
      }
 else       if (index > 0) {
        setFileFilter(filters.get(0));
      }
 else       if (filters.size() > 1) {
        setFileFilter(filters.get(1));
      }
 else {
        setFileFilter(null);
      }
    }
    FileFilter[] oldValue=getChoosableFileFilters();
    filters.removeElement(f);
    firePropertyChange(CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY,oldValue,getChoosableFileFilters());
    return true;
  }
 else {
    return false;
  }
}

public boolean removeChoosableFileFilter ( FileFilter f ) { int index = filters . indexOf ( f ) ; if ( index >= 0 ) { if ( getFileFilter ( ) == f ) { FileFilter aaff = getAcceptAllFileFilter ( ) ; if ( isAcceptAllFileFilterUsed ( ) && ( aaff != f ) ) { setFileFilter ( aaff ) ; } else if ( index > 0 ) { setFileFilter ( filters . get ( 0 ) ) ; } else if ( filters . size ( ) > 1 ) { setFileFilter ( filters . get ( 1 ) ) ; } else { setFileFilter ( null ) ; } } FileFilter [ ] oldValue = getChoosableFileFilters ( ) ; filters . removeElement ( f ) ; firePropertyChange ( CHOOSABLE_FILE_FILTER_CHANGED_PROPERTY , oldValue , getChoosableFileFilters ( ) ) ; return true ; } else { return false ; } }
removes a filter from the list of user choosable file filters . returns true if the file filter was removed .
