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

Doc error in JComponent.paintComponent

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 6
    • client-libs

      FULL PRODUCT VERSION :
      java version "1.6.0_05"
      Java(TM) SE Runtime Environment (build 1.6.0_05-b13)
      Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)

      ADDITIONAL OS VERSION INFORMATION :
      Windows Vista [Version 6.0.6000]


      A DESCRIPTION OF THE PROBLEM :
      the Javadoc for JComponent.paintComponent says:

      "Further, if you do not invoker super's implementation you must honor the opaque property, that is if this component is opaque, you must completely fill in the background in a **non-opaque** color. If you do not honor the opaque property you will likely see visual artifacts."

      That does not make sense. I think "non-opaque" should read "opaque".

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      look at the JavaDoc.


      REPRODUCIBILITY :
      This bug can be reproduced always.

            Unassigned Unassigned
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: