JDK-4302131 : Swing miscalculates edge of menu pane & gets color wrong
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.2_005
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_95
  • CPU: x86
  • Submitted: 1999-12-30
  • Updated: 2012-10-10
  • Resolved: 2001-06-25
Related Reports
Duplicate :  
Description
To see this bug, first change the default colors using
your Windows "Display Properties" dialog. Choose the scheme 'Lilac'.

The bug affects menus. Go to any native Windows application
and click on a menu. When the menu drops down, observe the colors
of the edge of the menu and also the thickness of the edge. The
edge is very thin (1 pixel?) and the color is light blue. 

Now start SwingSet and click on the File menu. The edge of the menu pane is
too thin (about 3 pixels) and is white in color, not light blue. (In fact
in many places, for example Group Box, the 3D highlight color is white
when it should be light blue.)

If Sun fixes this bug, and bug 4302130, and the bug I am about
to file on "colors used for disabled labels", the Windows L&F will
be perfect in my opinion, and that of other knowledgable programmers.

linden@eng  Dec 30 1999
-----

Comments
EVALUATION It does appear that with the Lilac Windows color scheme, our menus are not getting the proper outline colors. My suspician is that the Swing menu implementation isn't properly using the "control highlight" and "control shadow" SystemColors properly (I verified with a simple AWT program that the SystemColors appear to correctly match the Windows colors). amy.fowler@Eng 2000-01-05 This was fixed as part of the windows 2000 feature for merlin. I'm closing this bug out as a duplicate of it. scott.violet@eng 2001-06-25
05-01-2000