public void addExtension(String extension){
  if (filters == null) {
    filters=new Hashtable<String,JDBFileFilter>(5);
  }
  filters.put(extension.toLowerCase(),this);
  fullDescription=null;
}

public void addExtension ( String extension ) { if ( filters == null ) { filters = new Hashtable < String , JDBFileFilter > ( 5 ) ; } filters . put ( extension . toLowerCase ( ) , this ) ; fullDescription = null ; }
adds a filetype " dot " extension to filter against . for example : the following code will create a filter that filters out all files except those that end in " . jpg " and " . tif " : jdbfilefilter filter = new jdbfilefilter ( ) ; filter . addextension ( " jpg " ) ; filter . addextension ( " tif " ) ; note that the " . " before the extension is not needed and will be ignored .
