<Swing Dev> RFR: 8263907: Specification of CellRendererPane::paintComponent(..Rectangle) should clearly mention which method it delegates the call to
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Tue Apr 6 11:15:26 UTC 2021
On Mon, 5 Apr 2021 05:03:38 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/CellRendererPane.java line 204:
>>
>>> 202: /**
>>> 203: * Calls this.paintComponent(g, c, p, x, y, w, h) with the input parameter
>>> 204: * {@code Rectangle} x,y,width,height fields.
>>
>> Probably the simple "Calls paintComponent(g, c, p, r.x, r.y, r.width, r.height)" will work?
>
> Then the question might arise what is r.x, r.y....I guess my wordings makes it more clearer with pointer to input paramter.
Can this please be approved if there's no more comments?
-------------
PR: https://git.openjdk.java.net/jdk/pull/3146
More information about the swing-dev
mailing list