-
Bug
-
Resolution: Fixed
-
P3
-
15, 16, 17
-
b18
Specification for method
https://docs.oracle.com/en/java/javase/15/docs/api/java.desktop/javax/swing/CellRendererPane.html#paintComponent(java.awt.Graphics,java.awt.Component,java.awt.Container,java.awt.Rectangle)
is the following
"Calls this.paintComponent() with the rectangles x,y,width,height fields."
It is not perfectly clear which method the call is delegated to.
It should better be similar to
https://docs.oracle.com/en/java/javase/15/docs/api/java.desktop/javax/swing/CellRendererPane.html#paintComponent(java.awt.Graphics,java.awt.Component,java.awt.Container,int,int,int,int)
that tells
"Calls this.paintComponent(g, c, p, x, y, w, h, false)."
So the proposed spec should simply declare:
"Calls this.paintComponent(g, c, p, x, y, w, h)."
https://docs.oracle.com/en/java/javase/15/docs/api/java.desktop/javax/swing/CellRendererPane.html#paintComponent(java.awt.Graphics,java.awt.Component,java.awt.Container,java.awt.Rectangle)
is the following
"Calls this.paintComponent() with the rectangles x,y,width,height fields."
It is not perfectly clear which method the call is delegated to.
It should better be similar to
https://docs.oracle.com/en/java/javase/15/docs/api/java.desktop/javax/swing/CellRendererPane.html#paintComponent(java.awt.Graphics,java.awt.Component,java.awt.Container,int,int,int,int)
that tells
"Calls this.paintComponent(g, c, p, x, y, w, h, false)."
So the proposed spec should simply declare:
"Calls this.paintComponent(g, c, p, x, y, w, h)."
- clones
-
JDK-8263472 Specification of JComponent::updateUI should document that the default implementation does nothing
- Resolved
- csr for
-
JDK-8264169 Specification of CellRendererPane::paintComponent(..Rectangle) should clearly mention which method it delegates the call to
- Closed