Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6432667
Votes 1
Synopsis Vista: Menu dropdown differs while compare with naitve in vista laf.
Category java:classes_swing
Reported Against
Release Fixed 7(b07), 5.0u12(b01) (Bug ID:2143255) , 6u1(b02) (Bug ID:2144596)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 6379518 , 6417622 , 6509504 , 6509507 , 6515786 , 6531437 , 6554551 , 6567541
Submit Date 01-JUN-2006
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.
Posted Date : 2006-06-02 06:33:48.0
Work Around
N/A
Evaluation
  xxxxx@xxxxx   may be working on this one as part of 6379518. Should co-ordinate with him.
Posted Date : 2006-06-01 15:33:38.0

I've asked   xxxxx@xxxxx   to leave the Vista work out of 6379518. So this bug is tracking the menu work needed for Vista.
Posted Date : 2006-06-01 16:11:49.0

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).
Posted Date : 2007-01-03 17:36:51.0

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

there is a followup bug for this one:
6554551 [JMenu Items Won't Render Icons]
Posted Date : 2007-06-18 18:09:28.0
Comments
  
  Include a link with my name & email   

Submitted On 26-APR-2008
Prasshhant
When an application is run from Netbeans, Vista like menus appear and not when run by double clicking the jar file. Moreover Netbeans also has native menus on Vista



PLEASE NOTE: JDK6 is formerly known as Project Mustang