views:

150

answers:

2

While an applet is loading, it displays a white rectangle for a split second. How can we get rid of it?

+1  A: 

If you are targeting Java 6 you can try the new plugin options for displaying a loading screen. https://jdk6.dev.java.net/plugin2/#LOADING_SCREEN

Serhii
My applet is a public game and needs to work with older jvms too.
Manoj
+1  A: 

Did you try loading your applet offscreen?

You can then use MAYSCRIPT+LiveConnect to have your applet signal that it is running and have JavaScript move the applet container back onscreen.

geocar
I guess this white rectangle appears during the time in which browser fetch the class file from server. JDK6 has support for showing images during this time. But I have to support old jvms too.
Manoj