protected F restoreLastFilter(int dialogType){
  F result;
  List<F> list;
  int i;
  result=null;
  if (dialogType == OPEN_DIALOG)   list=getOpenFileFilters();
 else   list=getSaveFileFilters();
  if (list.size() > 0) {
    result=getDefaultFileFilter(dialogType);
    setFileFilter(result);
    if (m_LastFilter != null) {
      for (i=0; i < list.size(); i++) {
        if (m_Comparator.compare(list.get(i),m_LastFilter) == 0) {
          result=(F)m_LastFilter;
          setFileFilter(m_LastFilter);
          break;
        }
      }
    }
  }
  return result;
}

protected F restoreLastFilter ( int dialogType ) { F result ; List < F > list ; int i ; result = null ; if ( dialogType == OPEN_DIALOG ) list = getOpenFileFilters ( ) ; else list = getSaveFileFilters ( ) ; if ( list . size ( ) > 0 ) { result = getDefaultFileFilter ( dialogType ) ; setFileFilter ( result ) ; if ( m_LastFilter != null ) { for ( i = 0 ; i < list . size ( ) ; i ++ ) { if ( m_Comparator . compare ( list . get ( i ) , m_LastFilter ) == 0 ) { result = ( F ) m_LastFilter ; setFileFilter ( m_LastFilter ) ; break ; } } } } return result ; }
attempts to restore the last filter in use .
