<Swing Dev> [11] JDK-8191957: JFileChooser shows empty name for external drives shown under Desktop
Pankaj Bansal
pankaj.b.bansal at oracle.com
Mon Mar 12 08:52:35 UTC 2018
Hi All,
Please review the test only fix for JDK 11.
Bug:
https://bugs.openjdk.java.net/browse/JDK-8191957
webrev:
http://cr.openjdk.java.net/~pbansal/8191957/webrev.00/
Issue:
In windows 10, the "External Drives" or "Removable drives" names are empty when root directory "Desktop" is selected in JFileChooser. Only the icon is shown and name is empty.
Fix:
The system folder names are found by calling FileSystemView.getSystemDisplayName, which in turn calls Win32ShellFolderManager2.isFileSystemRoot. Here it was wrongly assumed that a drive will always be child of "DRIVES" or "MY PC". But in windows 10, the external drives are also shown as children of root directory "Desktop". Made changes to consider drives names which are children of "Desktop".
Note:
This is a windows 10 specific issues.
You will need an removable drive attached to you system to test this.
Regards,
Pankaj Bansal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20180312/784cc456/attachment.html>
More information about the swing-dev
mailing list