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?
- csr for
-
JDK-8188238 Access to Windows Large Icons
-
- Closed
-
- duplicates
-
JDK-6817929 FileSystemView.getSystemIcon() retrieves incorrect icons with high DPIs
-
- Closed
-
-
JDK-8156183 Alternative needed in Java 9 for getting large file icon
-
- Closed
-
- relates to
-
JDK-8289705 Handle the case where IExtractIconW::Extract returns S_FALSE
-
- Open
-
-
JDK-8289766 Unify the two methods for extracting icons on Windows
-
- Open
-
-
JDK-8300173 Handle E_PENDING result for IExtractIconW::GetIconLocation
-
- Open
-
-
JDK-8182041 File Chooser Shortcut Panel folders under on JDK 9
-
- Resolved
-
-
JDK-8212226 SurfaceManager throws "Invalid Image variant" for MultiResolutionImage (Windows)
-
- Resolved
-
-
JDK-8277299 STACK_OVERFLOW in Java_sun_awt_shell_Win32ShellFolder2_getIconBits
-
- Resolved
-
-
JDK-8289707 Use LookupIconIdFromDirectoryEx to extract only available sizes of icon
-
- Open
-
-
JDK-8289708 Extract only the requested icon size
-
- Open
-
-
JDK-8081722 Provide public access to sun.awt.shell.ShellFolder methods which are required for implementing javax.swing.JFileChooser
-
- Resolved
-
-
JDK-8282526 Default icon is not painted properly
-
- Resolved
-
-
JDK-8320692 Null icon returned for .exe without custom icon
-
- Resolved
-
-
JDK-8344907 NullPointerException in Win32ShellFolder2.getSystemIcon when "icon" is null
-
- Resolved
-
-
JDK-8293862 javax/swing/JFileChooser/8046391/bug8046391.java failed with 'Cannot invoke "java.awt.Image.getWidth(java.awt.image.ImageObserver)" because "retVal" is null'
-
- Resolved
-