Unfortunately, FileDialog can't actually use FileName filters on Windows machines, so they are of rather limited use. (You can user the method setFileNameFilter(), but the filter installed never actually gets used.) From the
API:
Filename filters do not function in Sun's reference implementation for Windows 95, 98, or NT 4.0.
Basically Sun has decided they will never be able to provide this functionality on those platforms using the original API for FileDialog, and have instead put made JFileChooser the preferred component for this sort of thing. Unfortunately, if you can't use Swing, you can't use JFileChooser, and I don't know a good solution for this problem.