Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8263907

Specification of CellRendererPane::paintComponent(..Rectangle) should clearly mention which method it delegates the call to

XMLWordPrintable

      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)."

            psadhukhan Prasanta Sadhukhan
            dbessono Dmitry Bessonov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: