This repository was archived by the owner on Jun 26, 2026. It is now read-only.
Description Consider:
final var factory = new JWFilterGlobFactory ();
final var filter = factory .create ( "PDF files (*.pdf)" )
.addRule ( INCLUDE , "**/*.pdf" )
.addRule ( EXCLUDE_AND_HALT , "**/.*" )
.build ();
final var builder = builder ().addFileFilters ( filter );
final var config = builder .build ();
try ( final var chooserType = JWFileChoosers .create () ) {
final var chooser = chooserType .create ( parentWindow , config );
chooser .showAndWait ();
Expected:
The file chooser opens with File type set to PDF files (*.pdf).
No hidden files or directories (starting with .) are listed.
Both "." and ".." directories are listed.
No option to select all files in the File type list.
No option to select only directories in the File type list.
Actual:
The file chooser opens with File type set to All files (*.*).
User may set File type list to "All files" or "Only directories".
Hidden files are not excluded from the list.
Only "." is listed.
Not sure if this is an enhancement or a bug.
Reactions are currently unavailable
Consider:
Expected:
PDF files (*.pdf)..) are listed.Actual:
All files (*.*).Not sure if this is an enhancement or a bug.