RFR: 4912623: GTK L&F: Folder list of the JFileChooser is allowing multiple selection unlike native [v2]
Abhishek Kumar
abhiscxk at openjdk.org
Wed Dec 14 07:40:03 UTC 2022
On Tue, 13 Dec 2022 18:39:00 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Abhishek Kumar has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update for folder list and test review comment update
>
> 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
It will not override the user choice. If user has set `multiselection `to `false`, FileChooser won't allow to select all files or folders.
-------------
PR: https://git.openjdk.org/jdk/pull/11627
More information about the client-libs-dev
mailing list