1 Attachment(s)
[SOLVED] method not applicable for the arguments
I have a littel problem with the code, since the arguments I am passing to a stub do not seem to be valid:
Code:
chooser.setFileView(new FileIconView(filter, new ImageIcon("C:\\icons\\exit.png"))); //FIX
...
[B]which calls[/B]
...
public void setFileView (FileIconView fileIconView) { //FIX
//TODO stub
}
...
FileIconView is a class whose constructor requires:
public FileIconView(FileFilter aFilter, Icon anIcon)
{
filter = aFilter;
icon = anIcon;
}
...
NOTE 1: The code does not compile and might have other problems, but I have uploaded it as an attachment.
:confused: