cant set FileFilter?
I get this error
Exception in thread "main" java.lang.Error: Unresolved compilation problem:
The method setFileFilter(FileFilter) in the type JFileChooser is not applicable for the arguments (FileFilter)
for this code
JFileChooser jfc =new JFileChooser();
jfc.setMultiSelectionEnabled(false);
FileFilter filefilter;
filefilter =new FileFilter()
{
publicboolean accept(File file)
{
returntrue;
}
public String getDescription()
{
return"EXE ONLY";
}
};
jfc.setFileFilter(filefilter);

