Symbian
Symbian OS Library

FAQ-0741 Why doesn't FilenameFilter doesn't work with FileDialog?

[Index][spacer] [Previous] [Next]



 

Classification: Java Category: AWT
Created: 09/24/2001 Modified: 10/16/2001
Number: FAQ-0741
Platform: Not Applicable

Question:
When I call setFilenameFilter(...) on a FileDialog, it should only display the names of files which satisfy the criteria in my accept(...) method. But these criteria seem to be ignored and all files displayed. Is this a defect or by design?

Answer:
The setFilenameFilter(...) method of FileDialog is not supported in Symbian's Java implementation. It was felt its use would slow down the display of a FileDialog unacceptably while checks were run on every single file on every medium accessible to the device.

    The implementation is therefore as follows:
    public void setFilenameFilter(FilenameFilter filter) {
       System.err.println("setFilenameFilter not implemented\n"); }