JDK-8182041 : File Chooser Shortcut Panel folders under on JDK 9
Type:Bug
Component:client-libs
Sub-Component:java.awt
Affected Version:9,10,11
Priority:P3
Status:Resolved
Resolution:Fixed
Submitted:2017-06-13
Updated:2018-11-06
Resolved:2018-10-05
The Version table provides details related to the release that this issue/RFE will be addressed.
Unresolved : Release in which this issue/RFE will be addressed. Resolved: Release in which this issue/RFE has been resolved. Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.
Fix Request:
This is a customer request filed in jdk9, 10 which has been recently fixed in 12. Please approve for back porting this to jdk 11u. The same patch as for 12 can be applied to 11u: http://cr.openjdk.java.net/~kaddepalli/8182041/webrev05/
The code has been reviewed by: [~psadhukhan], [~serb], [~prr].
17-10-2018
[~kaddepalli]Krishna, please back port it to 11u
05-10-2018
Here is the problem description and the reason to add a new public api:
"We design a File Chooser dialog for our Application by customizing the
shortcut folders panel on the left area of the dialog, adding to it some
remote folders. In order to achieve that we use
the sun package class sun.awt.shell.ShellFolder. We use it first to get the
list of local shortcut folders, using the API
ShellFolder.get("fileChooserShortcutPanelFolders"). On windows for example,
we want to get the folders "Recent Files", Desktop, Documents, Computer, etc.
Unfortunately, the sun package internal classes are not exposed anymore in
Java 9. How could we achieve the described File-Chooser customization without
the ShellFolder class on Java 9. Any equivalent API or workaround to suggest."
10-09-2018
12/7/2017: Review from Phil -- http://mail.openjdk.java.net/pipermail/swing-dev/2017-December/008066.html