It would have been more useful if you had used the dialog to navigate to a folder that contained a mixture of files so we could see if the filter was being applied even if it doesn’t appear in the list of filters.
Try this modification which will use standard Java dialog rather than the OS native dialogs and see what happens.
I get this (although with no option for “All files”):
So the modification does help. That is, until I omit the startFolder parameter. Then the sketch crashes with a NullPointerException at the selectInput() method.
My original minimal working example is just a stripped-down version of your G4P_Dialogs example.
This is a bug in G4P so if you don’t want to set the start folder use an empty string for the folder like this. G4P.selectInput("Input Dialog", "png,gif,jpg,jpeg", "Image files", "");
The bug will be fixed for the next release of G4P.
With regard to showing the All Files filter when you use selectInput with a filter, I need to think how best to implement.