JDK-5079742 : Swing's windows look and feel should be using Tahoma on Longhorn/XP
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: solaris_7,windows_xp
  • CPU: x86,sparc
  • Submitted: 2004-07-28
  • Updated: 2005-03-10
  • Resolved: 2004-09-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u2Fixed 6 betaFixed
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
Most controls in Swing with the windows look and feel on XP/Longhorn are not using Tahoma, and they should be.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: dragon mustang FIXED IN: mustang INTEGRATED IN: mustang
23-09-2004

EVALUATION In 1.5 we switched to using the desktop property win.defaultGUI.font (4918331) for most controls. This desktop property returns the name 'MS Shell Dlg', which is not a physical font, rather a face name of a nonexistant font. To get the real name we need to look in the registry. For 95/98/ME we are using the correct thing, but on 2k/XP we need to look for the value 'MS Shell Dlg 2'. Details on this can be found at: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/intl/nls_4qcn.asp I'll also add that even native controls are not consistant on what font they use. For example, the Display Properties appears to use MS Sans Serif, where as context sensitive menus use Tahoma. ###@###.### 2004-07-28 The fix is to change awt_DesktopProperties to first check for MS Shell Dlg 2, and if that isn't defined than use MS Shell Dlg. I'll also mention that this code appears to only matter for 2k and greater, other variants don't define MS Shell Dlg directly so that we won't hit this code. ###@###.### 2004-09-07
07-09-2004