JDK-6403544 : vista: Popup Menu is not matching with native popup menu
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 6,6u10
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_xp,windows_vista
  • CPU: x86
  • Submitted: 2006-03-24
  • Updated: 2024-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.
Other
tbdUnresolved
Related Reports
Duplicate :  
Relates :  
Relates :  
Relates :  
Description
Step to reproduce:
----------------------
1) Run the attached program. You can see the TrayIcon is added to the SystemTray. If you dn't see the TrayIcon, Click on the 'SetImage' button. A file dialog appears, select any one of the image file that is atached(animdog.gif & cupanim.gif). now you can see the selected image as TrayIcon.
2) Click on 'Toggle Popup' button.
3) Right click on TrayIcon , you can see a popup menu above that SytemTray which does not 
match with the native popupmenu. 

I have  attached two screen shot(SystemTrayPopupMenu.png & Nativepopupmenu.png). You can observe that the java popupmenu(SystemTrayPopupMenu.png) is not matching with native popupmenu(Nativepopupmenu.png).

Note:- Please see SytemTray bug 6400191 ( Vista: SystemTray's popup menu is placed 50 pixels above the taskbar) for placement of popupmenu.

I tested this on Vista beta2 (build 5308) on Mustang b76.

Comments
It is because AWT popup menus are used, such menus may be styled incorrectly. Allowing JPopupMenu for tray icon should resolve the inconsistency as Swing correctly uses visual styles for rendering menus. See JDK-6287100, JDK-6575405, JDK-8259913.
25-03-2024

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

- this is an issue reported against 7(7u), - there are now affected version 9 filed for this issue - 7u issues are transferred to Sustaining Nevertheless if someone have a report against 9 - please reopen and add affectedVersion 9 or 7u specific escalations might be reopen to Sustaining
10-08-2014

EVALUATION Please, look at evaluation for 6409255 (closed as dublicate)
07-04-2006

EVALUATION should evaluate further - if it a menu issue or a Tray one.
24-03-2006