FileFilter filter = new FileNameExtensionFilter("My mp3 description", "mp3");
The first argument is simply a description of the FileNameExtensionFilter - and since the second argument is var args, you can leave it out like you did, effectively meaning there is no filter.