JDK-5101407 : XP L&F: The mouseover highlight for a menu item lacks margins
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-09-14
  • Updated: 2004-09-16
  • Resolved: 2004-09-16
Related Reports
Duplicate :  
Description

Name: jl125535			Date: 09/13/2004


FULL PRODUCT VERSION :
java version "1.5.0-rc"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-rc-b63)
Java HotSpot(TM) Client VM (build 1.5.0-rc-b63, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
In native applications, there is a gap of two pixels between the (right/left) edge of the menu and the (right/left) edge of the highlight drawn behind the text. In Swing applications, the highlight extends all of the way to the edge of the background.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1. Run the SwingSet2 demo.
2. Switch to the Windows look and file.
3. Open a menu and mouse-over one of its items
4. Observe the highlight

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
There is a 2px gap between the edge of the menu and the highlight
ACTUAL -
There is no gap

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