TheObserver
Programmer
I have three classes - a class that creates a JFileChooser, and two classes that extend FileFilter that are used by the first class for filtering the user's file selection.
I add the file filters to the JFileChooser with the addChoosableFileFilter method (filechooser.addChoosableFileFilter(new BlahFileFilter())![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
and then display the JFileChooser.
If I click on the drop down list, I can see the * filter, and my two custom filters. However, I cannot select the second filter in the list and make it stick as the selection. The drop down always redisplays the third filter and the files that are filtered out of the filesystem are shown in the file list. If I select the * filter, I can then select the second filter and it works properly - but not until I select the *.
If I just add one custom file filter, I get a drop down with * and the custom FF, but I can't select the * - I'm stuck with only the custom FF and the associated file listing.
Is there something I'm missing in regard to how these filters should be added, or a method I should be calling to allow them all to be selectable, etc?
Thanks for your assistance.
I add the file filters to the JFileChooser with the addChoosableFileFilter method (filechooser.addChoosableFileFilter(new BlahFileFilter())
and then display the JFileChooser.
If I click on the drop down list, I can see the * filter, and my two custom filters. However, I cannot select the second filter in the list and make it stick as the selection. The drop down always redisplays the third filter and the files that are filtered out of the filesystem are shown in the file list. If I select the * filter, I can then select the second filter and it works properly - but not until I select the *.
If I just add one custom file filter, I get a drop down with * and the custom FF, but I can't select the * - I'm stuck with only the custom FF and the associated file listing.
Is there something I'm missing in regard to how these filters should be added, or a method I should be calling to allow them all to be selectable, etc?
Thanks for your assistance.