On Mon, 12 Dec 2022 05:56:38 GMT, Abhishek Kumar <abhis...@openjdk.org> wrote:

> It is not possible to select all files on press of Ctrl+A in JFileChooser for 
> GTK LAF where as all folders can be selected. 
> In native side on press of Ctrl+A, able to select all files as well as 
> folders.
> 
> Proposed fix is to enable `multiselection `property by default for 
> JFileChooser in GTK LAF to mimic native side behavior.
> 
> An automated test case is implemented and tested in CI. CI job links are 
> attached in JBS.

src/java.desktop/share/classes/com/sun/java/swing/plaf/gtk/GTKFileChooserUI.java
 line 567:

> 565:         fc.setLayout(new BorderLayout());
> 566:         fc.setAlignmentX(JComponent.CENTER_ALIGNMENT);
> 567:         fc.setMultiSelectionEnabled(true);

Please double check that this will not override what the user set

-------------

PR: https://git.openjdk.org/jdk/pull/11627

Reply via email to