United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6432667 Vista: Menu dropdown differs while compare with naitve in vista laf.
JDK-6432667 : Vista: Menu dropdown differs while compare with naitve in vista laf.

Details
Type:
Bug
Submit Date:
2006-06-01
Status:
Closed
Updated Date:
2011-03-09
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
client-libs
OS:
windows_vista
Sub-Component:
javax.swing
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6
Fixed Versions:

Related Reports
Backport:
Backport:
Backport:
Duplicate:
Duplicate:
Relates:
Relates:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

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

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

I've asked ###@###.### to leave the Vista work out of 6379518. So this bug is tracking the menu work needed for Vista.
                                     
2006-06-01
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).
                                     
2006-12-06
EVALUATION

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

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



Hardware and Software, Engineered to Work Together