public boolean accept(File dir,String name){
  return extension.equalsIgnoreCase(getExtension(name));
}

public boolean accept ( File dir , String name ) { return extension . equalsIgnoreCase ( getExtension ( name ) ) ; }
implements file name filter for native file dialog .
