RFR: 4912623: GTK L&F: Folder list of the JFileChooser is allowing multiple selection unlike native [v3]
Jayathirth D V
jdv at openjdk.org
Thu Dec 15 06:21:06 UTC 2022
On Wed, 14 Dec 2022 17:02:24 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:
>> 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
>
> @mrserb Please have a look on latest changes.
Its better to add a comment which mentions why we enable MultiSelection by default in GTK LAF compared to other LAF's, since we are trying to match platform behaviour.
-------------
PR: https://git.openjdk.org/jdk/pull/11627
More information about the client-libs-dev
mailing list