When multiple filters are used in a JFileChooser with the MotifLookAndFeel, there are problems with the way the files are displayed. The attached test case is a modified version of FileChooserDemo2 from the Java Tutorial. In this example, filters for .alog and .nlog extensions are added to the JFileChooser.
Behavior is different depending on whether or not the directory contains subdirectories, and whether or not files with both .alog and .nlog extensions are present. If files of both types are present, the problem is not exhibited.
If only one or the other extension type is present, and the directory does contain subdirectories, toggling between the two filters will display no results. If only one or the other is present, and the directory does not contain subdirectories, toggling between the two filters will always display files with the one extension type.
The problem occurs on both Solaris 9 and Windows XP with the MotifLookAndFeel. The problem does not exist on either platform with the MetalLookAndFeel. 1.4.2_03 and 1.5.0-beta both exhibit the problem.