int finalResult = 0;
JFileChooser fc = new JFileChooser();
// TF:24/03/2009:Split the file types into different types separated by semicolons
for (String suffix : fileTypes.split(";")) {
CustomFilter fileFilter = new CustomFilter(suffix);
// if (!fileTypesAdded.contains(fileTypes)) {
// fileTypesAdded.add(fileTypes);
// fc.addChoosableFileFilter(fileFilter);
// }
fc.removeChoosableFileFilter(fileFilter);