<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
Mon Apr 5 05:07:04 UTC 2021
On Thu, 1 Apr 2021 17:16:45 GMT, Sergey Bylokhov <serb at openjdk.org> 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
More information about the swing-dev
mailing list