The user will choose a file in JFileChooser that will be converted to a new file format and then saved with a different extension. I’d like to display files with both extensions so that the user will be able to see if the file has already been converted.
I’ve been able to add two FileNameExtensionFilter methods but that means that the user must toggle between them. Is there a way of filtering out all but the two extensions? The alternative appears to not use a filter and accept all files. (In the distant past I was able to do this in Windows using C/C++)
I’m using Java under Ubuntu.
Write a custom filter: