RFR: 4834298: JFileChooser.getSelectedFiles() failed with multi-selection and double-click [v3]

Tejesh R tr at openjdk.org
Thu Sep 8 11:09:53 UTC 2022


On Thu, 8 Sep 2022 11:02:24 GMT, Tejesh R <tr at openjdk.org> wrote:

>> In mac, the selection is maintained during this state transition, only in this scenario its not handled. And since same filechooser is used in selecting the files ( Just pop-up dialogue is used to select the files) I think it would be better to retain the selection.
>
> In keyboard selection the state is actually not maintained. Then do you think it better to clear the selection and set selected files to null....?

Clearing the selection and setting it to null also solves the problem though. When we call clear selection, reset will happen and selectedFiles will be set.

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

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



More information about the client-libs-dev mailing list