On Wed, 26 Oct 2022 04:34:24 GMT, Abhishek Kumar <[email protected]> wrote:
> While using a JFileChooser with the file selection mode FILES_AND_DIRECTORIES > and multiSelection enabled, it is impossible to select a single directory in > GTK LAF. > > The condition check has been modified when multiselection is enabled and user > has selected single directory. > After the fix the behavior of JFileChooser is similar to other LAFs. > > An automatic test case > `test/jdk/com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java` > is implemented and checked in CI pipeline. Link is attached in JBS. This pull request has now been integrated. Changeset: 4a68210d Author: Abhishek Kumar <[email protected]> Committer: Tejesh R <[email protected]> URL: https://git.openjdk.org/jdk/commit/4a68210d9f6c59ec4289b2e2412a1ae0df17fd81 Stats: 219 lines in 2 files changed: 218 ins; 0 del; 1 mod 6972078: Can not select single directory with GTKLookAndFeel Reviewed-by: psadhukhan, tr ------------- PR: https://git.openjdk.org/jdk/pull/10866
