<Swing Dev> RFR: 8263907: Specification of CellRendererPane::paintComponent(..Rectangle) should clearly mention which method it delegates the call to [v2]

Sergey Bylokhov serb at openjdk.java.net
Wed Apr 7 19:18:37 UTC 2021


On Wed, 7 Apr 2021 03:21:13 GMT, Prasanta Sadhukhan <psadhukhan 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.
>
> Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:
> 
>   javadoc change

Marked as reviewed by serb (Reviewer).

src/java.desktop/share/classes/javax/swing/CellRendererPane.java line 203:

> 201: 
> 202:     /**
> 203:      * Calls this.paintComponent(g, c, p, r.x, r.y, r.w, r.h) where

BTW the Rectangle does not have "w" and "h" fields

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

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


More information about the swing-dev mailing list