In the old java plugin, we don't "shutdown" the GrayBoxPainter until we're ready to destroy the applet. In the new java plugin design, the same approach won't work because there's only one component contained inside the embedded frame. We can either show the applet or something else such as the red X error icon.
> The fix involves catching exception resulting from calling the applet's init() and start() methods and calling showAppletException() which delegates to the GrayBoxPainter to show the red X error icon. Initially, the GrayBoxPainter was used to show the animation during applet loading. Before showing the red X error icon, we need to shutdown the GrayBoxPainter and in showAppletException() a GrayBoxPainter is created if needed. Also, before showing the red X error icon, we need to remove the applet from the embedded frame.