United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6669943 Java icon in system tray sometimes doesn't show up
JDK-6669943 : Java icon in system tray sometimes doesn't show up

Details
Type:
Bug
Submit Date:
2008-02-29
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-06-27
Component:
deploy
OS:
windows
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b21)

Related Reports
Relates:

Sub Tasks

Description
The Java logo in the system tray slot for the new Java Plug-In sometimes doesn't show up. This seems to happen most often in cold start situations. The reason most likely is the new com.sun.deploy.ui.WindowsTrayIcon class added in 6611346, which decoupled the system tray icon support from the old Java Plug-In. In the interest of keeping the code simple the new code doesn't properly support the case where the image doesn't get fully loaded within a short period of time. A proper ImageObserver needs to be added and the code modified to support the icon's image being loaded asynchronously.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6669943.0
                                     
2008-03-10
EVALUATION

Hooked up ImageObserver properly and added modifyIcon() method which
can update the tray icon's image after its slot in the system tray has
been allocated.

Verified by manually injecting a several-second delay of the Toolkit
image (using a background thread) and verifying that the system tray
icon shows up correctly. No other test case possible.
                                     
2008-03-10



Hardware and Software, Engineered to Work Together