On Wed, 24 Aug 2022 07:44:52 GMT, Tejesh R <[email protected]> wrote:

> JFileChooser.getSelectedFiles() failed to retrieve files with multi-selection 
> and double-click. This occurs when a single file is selected then enable 
> multi-selection then select the same file through mouse double-click(Two file 
> chooser dialogs used before and after multi-selection enabled). SelectedFiles 
> are updated when a change in files/directory selection is done or when 
> selection is made through keyboard selection. In this case since a single 
> file is selected before multi-selection is enabled and same file is selected 
> again without changing the selection index/directory, leaving selected Files 
> un-updated. 
> **Proposed Fix** : Whenever Multi-Selection is enabled check if any files are 
> selected, if yes update the selected Files of JFileChoooser.

This pull request has now been integrated.

Changeset: 9cd3e355
Author:    Tejesh R <[email protected]>
Committer: Jayathirth D V <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/9cd3e355d1f5216626daa6a9669b0c95343ca4f0
Stats:     95 lines in 2 files changed: 93 ins; 1 del; 1 mod

4834298: JFileChooser.getSelectedFiles() failed with multi-selection and 
double-click

Reviewed-by: jdv

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

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

Reply via email to