<AWT Dev> RFR: 8182043: Access to Windows Large Icons [v12]

Alexander Zuev kizune at openjdk.java.net
Tue May 25 22:01:43 UTC 2021

On Fri, 21 May 2021 22:07:30 GMT, Phil Race <prr at openjdk.org> wrote:

>> Alexander Zuev has updated the pull request incrementally with one additional commit since the last revision:
>>   Chenged implementation specification based on CSR review
> src/java.desktop/share/classes/javax/swing/filechooser/FileSystemView.java line 280:
>> 278:     * @param size width and height of the icon in user coordinate system.
>> 279:     * This API only supports square icons with the edge length
>> 280:     * equals or greater than 1. Maximum size allowed is defined by the
> I think this is a weird way to say size >=1.
> We should throw IAE for <=0 .
> I also think we need to allow for rectangular icons,  not bake it in to the spec in such strong terms that we don't.
> I suppose  it could be revised if a platform that needs it comes along but  ...
> Still not sure about failing if you exceed the maximum size.
> Why ? Why not just return the largest possible - it is the same thing as other cases, we'll return the best match.
> If that is what you already mean, then say it more clearly.

Ok, in order to allow rectangular items API needs to be slightly modified and tests and documentation should be amended accordingly. I did that, please take a look, once it is settled i will update and finalize CSR.


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

More information about the awt-dev mailing list