[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjdk-2d-dev
Subject:    RFR: 4834298: JFileChooser.getSelectedFiles() failed with multi-selection and double-click
From:       Tejesh R <tr () openjdk ! org>
Date:       2022-08-24 7:53:17
Message-ID: txQleI8j4XOqDQPMqXmvX419fcqHHFEBy7osuxMXXU8=.b235e18f-9462-4974-b49f-8dab3e644a1b () github ! com
[Download RAW message or body]

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.

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

Commit messages:
 - Fix - Updated filepane with fix and added test case
 - Merge remote-tracking branch 'upstream/master'
 - Merge remote-tracking branch 'upstream/master'
 - Merge remote-tracking branch 'upstream/master'
 - Merge remote-tracking branch 'upstream/master'
 - Merge remote-tracking branch 'upstream/master'
 - Merge branch 'master' of github.com:TejeshR13/jdk
 - Merge branch 'openjdk:master' into master
 - Merge remote-tracking branch 'upstream/master'
 - Merge remote-tracking branch 'upstream/master'
 - ... and 2 more: https://git.openjdk.org/jdk/compare/77398430...7129054a

Changes: https://git.openjdk.org/jdk/pull/9996/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9996&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-4834298
  Stats: 106 lines in 2 files changed: 106 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/9996.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9996/head:pull/9996

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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic