G
Gingko
Hello,
I wrote a Java applet for an embedded application (which includes a tiny
HTTP server), and I have a problem with it, probably not related to the
embedded nature of the application.
The problem is, while the applet is loading, it displays a white rectangle
for a very short time before the applet becomes initialized (the applet is
drawn on a web page with a deep blue background).
This looks like very ugly, especially in Mozilla Firefox (version 1.5.0.1,
Window XP ...) because this rectangle shortly appears first near the left
margin of the page before being rendered centered on the page, as it is
normally expected.
(on Internet Explorer, there is also a white flashing rectangle, but it is
first drawn correctly centered).
I tried to set the background in the "init' function of the applet in
various ways, this makes the flashing a little shorter, but not enough to
makes it disappearing completely : the rectangle seems to be drawn largely
before the calling of the "init" function.
Does somebody know if there is some way to avoid this white rectangle, or at
least to delay it until the applet's rendering box is completely computed
after the loading of the embedding html web page ?
Thank you very much for any answer ...
Gingko
I wrote a Java applet for an embedded application (which includes a tiny
HTTP server), and I have a problem with it, probably not related to the
embedded nature of the application.
The problem is, while the applet is loading, it displays a white rectangle
for a very short time before the applet becomes initialized (the applet is
drawn on a web page with a deep blue background).
This looks like very ugly, especially in Mozilla Firefox (version 1.5.0.1,
Window XP ...) because this rectangle shortly appears first near the left
margin of the page before being rendered centered on the page, as it is
normally expected.
(on Internet Explorer, there is also a white flashing rectangle, but it is
first drawn correctly centered).
I tried to set the background in the "init' function of the applet in
various ways, this makes the flashing a little shorter, but not enough to
makes it disappearing completely : the rectangle seems to be drawn largely
before the calling of the "init" function.
Does somebody know if there is some way to avoid this white rectangle, or at
least to delay it until the applet's rendering box is completely computed
after the loading of the embedding html web page ?
Thank you very much for any answer ...
Gingko