JDK-6651293 : Red X should show up when exceptions are thrown in init() and start()
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u10
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2008-01-16
  • Updated: 2010-09-08
  • Resolved: 2008-03-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u10 b13Fixed
Related Reports
Relates :  
Relates :  
Description
It was pointed out by user linuxhippy on the java.net forums (http://forums.java.net/jive/thread.jspa?threadID=35333&tstart=0) that the Red X is not showing up in the new plug-in when an exception is thrown in either init() or start(). It does in the old plug-in. The attached test case shows the difference in behavior.

Comments
EVALUATION 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.
02-02-2008

SUGGESTED FIX http://sa.sfbay.sun.com/projects/deployment_data/6u10/6651293.0
02-02-2008