1 Reply Latest reply on Apr 25, 2013 12:37 PM by thomas_behr

    Using FileFilter problems with JFileChooser in JDK 1.7.0

      I have an implementation of the FileFilter class used with JFileChooser and it worked for jdk versions upto 1.6.30 by correctly filtering the file types when the JFileChooser was invoked. I then upgraded to jdk1.7.0.10 and suddenly the JFileChooser instead defaults to "All Files" and doesn't filter by file type as it used to. Code fragment below
              JFileChooser chooser = new JFileChooser(aFile.getAbsolutePath());
      Is there something else that needs to change.
      I know there is a java implementation of the FileFilter class - FileNameExtensionFilter - but I really would like to know what is causing this change in behaviour between the jdk versions.