-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.1.1
-
None
-
x86
-
windows_95, windows_nt
Name: sgC58550 Date: 06/30/97
public class MyFrame extends Frame implements FilenameFilter
{
// Constructors and other code go here ...
public testDialog()
{
FileDialog dialog;
dialog = new FileDialog(this, "title", FileDialog.LOAD);
dialog.setFilenameFilter(this);
dialog.show();
}
public boolean accept(File dir, String name)
{
return name.endsWith(".txt");
}
}
In my testing, accept() never gets called. Also, it makes no
difference whether dialog.addNotify() is called before setting
the filename filter.
company - (none) , email - ###@###.###
======================================================================
daniel.indrigo@Canada 1997-08-26 Also fails on Solaris
- duplicates
-
JDK-4062596 File Filters In File Dialog Don't Work
-
- Closed
-
-
JDK-4031440 FileDialog doesn't call FilenameFilter.accept()
-
- Closed
-