JDK-1227945 : filter functionality not implemented in file dialog
  • Type: Enhancement
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.0,3.1,1.0.2,1.1
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS:
    solaris_2.3,solaris_2.4,solaris_2. ... solaris_2.3,solaris_2.4,solaris_2.5,windows_95
  • CPU: x86,sparc
  • Submitted: 1995-11-11
  • Updated: 1996-12-13
  • Resolved: 1996-12-13
Related Reports
Duplicate :  
Description
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

Comments
EVALUATION This is described with more specific detail on the problem in 1243038
11-06-2004

PUBLIC COMMENTS filter field in file dialog cannot be set
10-06-2004