<Swing Dev> RFR: 8182043: Access to Windows Large Icons [v7]
Alexander Zvegintsev
azvegint at openjdk.java.net
Sun May 16 19:10:44 UTC 2021
On Fri, 14 May 2021 19:46:03 GMT, Alexander Zuev <kizune at openjdk.org> wrote:
>> Fix updated after first round of review.
>
> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision:
>
> Slight change of wording in javadoc
> Fixed Win32ShellFolder2.getSystemIcon scaling issue
src/java.desktop/share/classes/javax/swing/filechooser/FileSystemView.java line 271:
> 269: * Example: <pre>
> 270: * FileSystemView fsv = FileSystemView.getFileSystemView();
> 271: * Icon icon = fsv.getSystemIcon("application.exe", 64);
Shouldn't the first parameter be a File instance instead of String?
`Icon icon = fsv.getSystemIcon(new File("application.exe"), 64);`
-------------
PR: https://git.openjdk.java.net/jdk/pull/2875
More information about the swing-dev
mailing list