RFR: 8187759: Background not refreshed when painting over a transparent JFrame [v2]

Tejesh R tr at openjdk.org
Fri Jan 12 07:17:39 UTC 2024


On Fri, 12 Jan 2024 06:32:55 GMT, Abhishek Kumar <abhiscxk at openjdk.org> wrote:

>> Tejesh R has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Review fix
>
> test/jdk/javax/swing/JFrame/JFrameBackgroundRefreshTest.java line 129:
> 
>> 127:             g2d.setColor(new Color(0,0,0,0));
>> 128:             g2d.fillRect(0, 0, getWidth(), getHeight());
>> 129:             g2d.drawImage(test, p.x, p.y, this);
> 
> should we dispose `Graphics2D` object?

Yes.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/17081#discussion_r1449949585


More information about the client-libs-dev mailing list