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

Unintended caching of HTMLEditorKit background images

XMLWordPrintable

    • b48
    • x86
    • windows_xp

      FULL PRODUCT VERSION :
      java version "1.5.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-b64)
      Java HotSpot(TM) Client VM (build 1.5.0-b64, mixed mode)

      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows XP [Version 5.1.2600]

      A DESCRIPTION OF THE PROBLEM :
      StyleSheet.BackgroundImagePainter uses an ImageIcon to load and paint the background image for an HTML page. Unfortunately, this means that the image is never reloaded as long as the application runs. Instead, it should use createImage to load the image, so that changes are picked up.

      This is closely related to the recently fixed bug 4725530. However, the fix for that bug was performed in ImageView. Now BackgroundImagePainter needs the same change, so that background images will perform properly as well.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      CUSTOMER SUBMITTED WORKAROUND :
      Use Toolkit.getImage(...).flush() at some appropriate time to cause the image to be discarded and reloaded.
      ###@###.### 2005-05-02 05:54:22 GMT

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: