On Thu, 1 Apr 2021 17:16:45 GMT, Sergey Bylokhov <[email protected]> wrote:
>> Specification for method
>> javax/swing/CellRendererPane.html#paintComponent(java.awt.Graphics,java.awt.Component,java.awt.Container,java.awt.Rectangle)
>> is not perfectly clear which method the call is delegated to.
>>
>> Updated spec to clarify.
>
> 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.
-------------
PR: https://git.openjdk.java.net/jdk/pull/3146