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

Sergey Bylokhov serb at openjdk.java.net
Thu Apr 1 17:19:23 UTC 2021


On Tue, 23 Mar 2021 06:10:32 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.

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?

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

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


More information about the swing-dev mailing list