applet blinks when launched in a html page with black background

Dear sirs:

I 'm testing a game applet and preparing for deployment. However, whenever i reload the html page containg the applet, the applet will first appear as a white block and then switch to black-background( i set black as bg in first sentence at applet's init() ) .

It's really annoying as the bgcolor of html is black. I try to set the applet and div's visibility be hidden, but the problems remains. And i try to add a black div covering on the applet( with z-index = 200) , it still blinks.

Does anyone know how to startup the applet with background other than white?

I use windows, and jre1.6.0.1 plugin.

i Searched in google with no result.

Thanks a lot.

[718 byte] By [stevpana] at [2007-11-27 4:58:53]
# 1

an initial fade in/out is added after init() function to reduce the flicking.

some javascript tricks are used to reduce the white flashing after reloading. now it's much better and acceptable.

However, i still want to know does anyone have some better tricks?

There's a bug report in 2002 which is shown as "fixed", "closed".i think it's the same problem( in fact not fixed).

The applet does not start up with the background color set in init() function. It first appears as a white block for 0.2-0.3 second, then switches to the user defined bgcolor . really annoying.

stevpana at 2007-7-12 10:14:57 > top of Java-index,Desktop,Core GUI APIs...
# 2
forget to say. The problem is contray in IE and Firefox, In firefox, the white block only appears when reload the page( page-exit). and will not flickr in startup. In IE, the applet startups with white block but not appears when reload (page-exit).
stevpana at 2007-7-12 10:14:57 > top of Java-index,Desktop,Core GUI APIs...