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

REGRESSION: 1.5.0_01 has white background and no boxmessage

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 6
    • 5.0
    • deploy
    • x86
    • windows_2000

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

      ADDITIONAL OS VERSION INFORMATION :
      Windows 2000

      A DESCRIPTION OF THE PROBLEM :
      The background colour of applets and objects in both IE and Firefox (and presumably Netscape/Mozilla as well) is white, then for a VERY brief period shows the desired background colour, and then displays the loaded applet. The dll should not paint any background until it has read the boxbgcolor value, and then it should use that value immediately rather than flashing white - this looks really awful when a black background is used.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      An empty applet, as shown below is sufficient to demonstrate this issue.
      It is easier to see if you add a jar file to load that is really big from a remote site, but even as it, you can see the issue - 1.5 will show a white box while loading, while 1.4 shows a blue box with the specified text. Note that this is a regression from a fix made specifically for Java 1.4 (that is, Java 1.3 will do the same thing as 1.5, because it was a new feature for 1.4)

      <html>
         <body>
            <applet>
               <param name="boxbgcolor" value="blue" />
               <param name="boxfgcolor" valud="red" />
               <param name="boxmessage" value="Loading your applet." />
            </applet>
         </body>
      </html>

      It doesn't affect anything if you put the values directly into the applet tag, or if you use an object tag instead. Using just jpi-version to select 1.4.2_05 versus 1.5.0_01 shows that it worked previously but no longer does.
      In the above example, you will see it flash blue very briefly before it displays whatever your applet is.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Never paints white when boxbgcolor is specified to non-white and applet isn't white.
      ACTUAL -
      Flashes white for most of the loading time.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      Release Regression From : 1.4.2_06
      The above release value was the last known release where this
      bug was known to work. Since then there has been a regression.
      ###@###.### 2005-03-09 07:06:57 GMT
      ###@###.### 2005-03-09 07:10:03 GMT

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: