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

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 15, 16, 17
    • Fix Version/s: 17
    • Component/s: client-libs
    • Labels:

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: