public boolean accept(File f){
  boolean shown=true;
  if (f != null && fileFilter != null) {
    shown=fileFilter.accept(f);
  }
  return shown;
}

public boolean accept ( File f ) { boolean shown = true ; if ( f != null && fileFilter != null ) { shown = fileFilter . accept ( f ) ; } return shown ; }
returns true if the file should be displayed .
