What interests me is your implementation of accept. The method definition I see in the docs for 1.1, 1.2 and 1.3 is accept(File file) and you have it implemented as accept(File dir,
String filename). Try changing the signiture of your accept and
test it again.
Hope this helps
