-
Type:
Enhancement
-
Status: In Progress
-
Priority:
P3
-
Resolution: Unresolved
-
Affects Version/s: 9, 10, 11, 13, 14, 15
-
Fix Version/s: 17
-
Component/s: client-libs
-
Subcomponent:
-
Understanding:Fix Understood
karim.makhloufi 06/12/17 12:49 pm ***
the API
javax.swing.filechooser.FileSystemView.getFileSystemView().getSystemIcon(file)
return a small 16x16 icon. In order to get a large 32x32 one, we are used to
use the API
sun.awt.shell.ShellFolder.getShellFolder(file).getIcon(getLargeIcon),
Unfortunately, the sun package internal classes are not exposed anymore in
Java-9.
How can we get System large icons when our client is running on JRE 9. We
need it especially to display Windows icons (Desktop, Computer, My Documents,
Recent Files, etc). Any workaround to suggest?
the API
javax.swing.filechooser.FileSystemView.getFileSystemView().getSystemIcon(file)
return a small 16x16 icon. In order to get a large 32x32 one, we are used to
use the API
sun.awt.shell.ShellFolder.getShellFolder(file).getIcon(getLargeIcon),
Unfortunately, the sun package internal classes are not exposed anymore in
Java-9.
How can we get System large icons when our client is running on JRE 9. We
need it especially to display Windows icons (Desktop, Computer, My Documents,
Recent Files, etc). Any workaround to suggest?
- duplicates
-
JDK-8156183 Alternative needed in Java 9 for getting large file icon
-
- Closed
-
- relates to
-
JDK-8182041 File Chooser Shortcut Panel folders under on JDK 9
-
- Resolved
-
-
JDK-8212226 SurfaceManager throws "Invalid Image variant" for MultiResolutionImage (Windows)
-
- Resolved
-
-
JDK-8081722 Provide public access to sun.awt.shell.ShellFolder methods which are required for implementing javax.swing.JFileChooser
-
- Resolved
-
- links to
-
Review openjdk/jdk/380