JDK-4907679 : XP L&F: Menu appearance does not conform to native XP look with icons
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2003-08-15
  • Updated: 2003-11-04
  • Resolved: 2003-11-04
Related Reports
Duplicate :  
Description

Name: jk109818			Date: 08/15/2003


FULL PRODUCT VERSION :
java version "1.4.2-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-beta-b19)
Java HotSpot(TM) Client VM (build 1.4.2-beta-b19, mixed mode)

FULL OS VERSION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
I am experimenting with the XP L&F under WinXP. I encountered this:

a) The text of a menu item is somewhat indented (i.e. doesn't start directly at the left border) but under native XP the indention is smaller.

b) The space between the left border and the beginning of the text is always there and is _not_ used for i.e. check marks or other glyphs. So if one is using a menu with simple text items together with some items with icons, it's getting really unpleasant to look at.


STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Creating any simple menu where some items have an icon and others have not should do.


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
(the @ shall represent an icon, for example the "scissors" in a "Edit" Menu):

The layout of the menu should like native XP:

Testmenu
----------
   Yadda
 @ Foo
   Bar
   Etc


ACTUAL -
But you get a menu where the menu items are somewhat weired aligned.

Testmenu
----------
 Yadda
 @ Foo
 Bar
 Etc

 

REPRODUCIBILITY :
This bug can be reproduced always.
(Incident Review ID: 188642) 
======================================================================

Comments
EVALUATION Should fix when possible. ###@###.### 2003-09-26
26-09-2003