To include just *.java, set filter type to "Include" and type add "*.java" (without quote) in the wildcard

To exclude *.exe" and all JUnit test cases, set filter type to "Exclude" and add two wildcard, one for "*.dll" and one for "*Test*"

Note: the wildcard is case insensitive