On Thu, 20 May 2021 16:13:41 GMT, Sergey Bylokhov <s...@openjdk.org> wrote:

>> My point was that the implspec is a normative specification and we cannot 
>> refer to non-public classes in that documentation.
>
> As for the example on Linux, how it will work for different sizes?
>    Icon icon1 = fsv.getSystemIcon(new File("."), 16);
>    Icon icon2 = fsv.getSystemIcon(new File("."), 32);
> Will the resulted icons have proper size 16 and 32?

No they will have the same size. That's why the broad wording is used that we 
take a requested size into consideration but we will return the best possible 
icon we can get and we do not guarantee that the icon size will change the 
outcome. Even on Windows if we request icon if sizes 1, 2, 3 and 4 the icon 
will be basically the same - minimal quality icon available.

-------------

PR: https://git.openjdk.java.net/jdk/pull/2875

Reply via email to