JDK-6432667 : Vista: Menu dropdown differs while compare with naitve in vista laf.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2006-06-01
  • Updated: 2011-03-09
  • Resolved: 2011-03-08
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 JDK 7
6u1Fixed 7 b07Fixed
Related Reports
Duplicate :  
Duplicate :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Bug Info:
=========
JMenu dropdowns doesn't look like native menu dropdown in windows vista.

List of differences below.

1. Difference in the appearance of the menu separator

2. Difference in the menu item selection. On Win XP, the menu selection looks same on both native and java(winlaf).

3. Difference in CheckboxMenuItem and RadioButtonMenuItem.

4. Native menu have vertical separator and the separator portion have different background for icons,checkbox and radio buttons.But swing dropdown menu doesn't have.


Please find the attached image files for compare.

Vista Build:5384
Theme: windows vista default theme.

Comments
EVALUATION there is a followup bug for this one: 6554551 [JMenu Items Won't Render Icons]
18-06-2007

EVALUATION there is a followup bug for this one: 6515786 [PIT: Vista(Win LAF) Pressing ESC Key throws "java.lang.ClassCastException: javax.swing.JPopupMenu"]
22-01-2007

EVALUATION In MS Vista themeing was added for the menus. Most notable problems addressed in the fix for this bug: - JMenuBar and JMenuItem, JMenu, JRadioButtonMenuItem, JCheckBoxMenuItem backgrounds are themed. - JCheckBoxMenuItem and JRadioButtonMenuItem use themed icons for check and radio marks. - in case icon is defined for JCheckBoxMenuItem or JRadioButtonMenuItem this icon is used as a check/radio mark. themed background is used to show the selection. - top level menu looks disabled for non active window - icons and check/radio marks alignment is changed to mimic how Vista does it. - themed gutter is used to separate icon part of the menu item from the rest (supported only for LTR case).
06-12-2006

EVALUATION I've asked ###@###.### to leave the Vista work out of 6379518. So this bug is tracking the menu work needed for Vista.
01-06-2006

EVALUATION ###@###.### may be working on this one as part of 6379518. Should co-ordinate with him.
01-06-2006