On Tue, 23 Mar 2021 06:10:32 GMT, Prasanta Sadhukhan <psadhuk...@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

Reply via email to