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

Documentation error in JComponent.paintComponent

XMLWordPrintable

    • b29
    • x86
    • os_x

      FULL PRODUCT VERSION :


      A DESCRIPTION OF THE PROBLEM :
      The javadoc for JComponent.paintComponent specifies a contract for painting opaque components:

      > if this component is opaque, you must completely fill in the background in a non-opaque color

      It should read "opaque color", or "non-transparent color".

      https://docs.oracle.com/javase/9/docs/api/javax/swing/JComponent.html#paintComponent-java.awt.Graphics-


      REPRODUCIBILITY :
      This bug can be reproduced always.

            psadhukhan Prasanta Sadhukhan
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: