Yo yo. Yo download link for yo mod isn't working. Not sure if it's my fault.
for the code:"The method setFileFilter(FileFilter) in the type JFileChooser is not applicable for the arguments (FileFilter)"
Along with the class:FileFilter filter = new BmpFileFilter();
chooser.setFileFilter(filter);
What am I doing wrongpublic class BmpFileFilter implements FileFilter
{
public boolean accept(File theFile)
{
if (theFile.isDirectory())
return true;
if (theFile.getName().endsWith(".bmp"))
return true;
else
return false;
}
public String getDescription() {return "Plain bitmaps";}
}