<AWT Dev> RFR: 8182043: Access to Windows Large Icons [v10]
kizune at openjdk.java.net
Thu May 20 17:01:43 UTC 2021
On Thu, 20 May 2021 16:53:06 GMT, Alexander Zuev <kizune at openjdk.org> wrote:
>> 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.
> My point was that the implspec is a normative specification and we cannot refer to non-public classes in that documentation.
implSpec may describe the behavior of the default implementation and if it means referring the non-public API to clarify the behavior of this method i do not see any issue here.
More information about the awt-dev