Follow the instructions below. 1) Check that current filter in the opened JFileChooser is a "CustomFileFilter". 2) Close the JFileChooser. 3) Test will repeat steps 1 - 2 for all supported look and feels. 4) If it's true for all look and feels then the test passed, otherwise it failed.