RFR: 6972078: Can not select single directory with GTKLookAndFeel [v4]

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Nov 4 10:09:40 UTC 2022


On Fri, 4 Nov 2022 10:00:48 GMT, Abhishek Kumar <duke at openjdk.org> wrote:

>> test/jdk/com/sun/java/swing/plaf/gtk/TestFileChooserSingleDirectorySelection.java line 113:
>> 
>>> 111:             clickMouse(frameLocation, 0, frameHeight, 230);
>>> 112:             clickMouse(btnLocation, btnWidth, btnHeight, 0);
>>> 113:             checkResult(laf);
>> 
>> I guess you can optimise by a helper method for this repeated code passing the offset value as paramter.
>> 
>> Also, did you check [JDK-4912623](https://bugs.openjdk.org/browse/JDK-4912623) as mentioned?
>
> Added a helper method for the repeated code.
> 
> I tried to reproduce the [JDK-4912623](https://bugs.openjdk.org/browse/JDK-4912623) bug. SwingSet2 JFileChooser demo behaves as it is mentioned in the bug description but in Gedit I didn't find separate folder and files list.

The bug says 
2) Go to FileChooser Demo.
3) Tab to Folder List
4) Press CTRL+A. It will select all the items in the list.
5) Now Tab to file list and press ctrl+A, it will not select all the items.
6) Now Open Gedit.
7) Click Open.
8) Repeat the steps 3 to 5. Behaviour for the native will be opposite to its Java counterpart.

so you can create manually folder with only files and a folder with only folders and then try with Gedit to open those folders and trey the steps...

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

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



More information about the client-libs-dev mailing list