JDK-6634118 : Disabling of system tray icon will not work on Windows Vista
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7
  • Priority: P5
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows
  • CPU: generic
  • Submitted: 2007-11-27
  • Updated: 2014-07-30
  • Resolved: 2014-05-12
Related Reports
Relates :  
Description
The disabling of the Java tray icon in both the system tray and via the pop-up menu is broken on Windows Vista. This has been determined by code inspection, not by testing.

The fix would be to change the use of HKEY_LOCAL_MACHINE to HKEY_CURRENT_USER in the querying of the HideSystemTrayIcon registry key.

Affected areas are src/plugin/win32/common/SysTrayReg.cpp, IsSysTrayEnabled() and ShowSysTray(), and src/common/windows/native/WindowsJavaTrayIcon.cpp, Java_com_sun_deploy_ui_WindowsJavaTrayIcon_isEnabled0() and Java_com_sun_deploy_ui_WindowsJavaTrayIcon_showSysTray().

Note that these changes will be picked up in the Java Control Panel code, src/plugin/win32/regutils/RegJControl.cpp, as it uses the SysTrayReg code's routines.

Comments
P5 Vista-only issue will not be fixed.
12-05-2014