Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-1227945

filter functionality not implemented in file dialog

XMLWordPrintable

    • x86, sparc
    • solaris_2.3, solaris_2.4, solaris_2.5, windows_95

      There is no way in the current API to change the filter field on the file dialog.

      The description field as copied from bug report 1228900 follows:

      I implemented the action method for FilenameFilter. Calling FileDialog.setFilenameFilter()
      seems to have no affect. I searched around in the code and I think that this is not
      implemented, but I could be wrong.

      The description field as copied from bug report 1230302 follows:

      getFilenameFilter always returns null though the filter displays an entry.

      setFilenameFilter doesnt set the filter and call 'accept' in the FilenameFilter class
      to determine the right files matching the filter.

      To reproduce, run the test FileDialogTest.java in the testsuite (awt) directory.

      Vijay

      [meiphen 8/30/96]
      Another customer requesting for the RFE:
      To: webmaster@java
      Subject: Filtering file directory

      I have been trying to use the setFilenameFilter method in the FileDialog
      class, but I haven't been able to get it to do anything. I set up a class of
      FilenameFilter whose method accept returns true for the file extensions I
      want and false for those I don't want, but this method never seems to get
      called (I put in a System.out.println statement to make sure) and the
      directory continues to show all file names. Have you implemented this
      feature? If so, how do I make it work?

      Roger Stevens

            gsaab Georges Saab
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: