<AWT Dev> RFR: 8182043: Access to Windows Large Icons [v10]
Alexander Zuev
kizune at openjdk.java.net
Thu May 20 16:56:54 UTC 2021
On Thu, 20 May 2021 16:13:41 GMT, Sergey Bylokhov <serb at 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
More information about the awt-dev
mailing list