|
Quick Lists
|
|
Bug ID:
|
4062249
|
|
Votes
|
7
|
|
Synopsis
|
FilenameFilter doesn't work with FileDialog
|
|
Category
|
java:classes_awt
|
|
Reported Against
|
1.1.1
|
|
Release Fixed
|
|
|
State
|
11-Closed, duplicate of 4031440,
bug
|
|
Priority:
|
4-Low
|
|
Related Bugs
|
4031440
,
4062596
|
|
Submit Date
|
30-JUN-1997
|
|
Description
|
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.
======================================================================
xxxxx@xxxxx 1997-08-26 Also fails on Solaris
|
|
Work Around
|
======================================================================
|
|
Evaluation
|
N/A
|
|
Comments
|
Submitted On 03-FEB-1998
JamieS
This appears to the the same as 4062596
Submitted On 22-APR-1998
dufort
Problem already discussed in bug #4031440.
PLEASE NOTE: JDK6 is formerly known as Project Mustang
|
|
|
 |