JDK-4199085 : JButtons are too tall and too narrow in Windows look and feel.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P4
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: generic
  • CPU: generic
  • Submitted: 1998-12-22
  • Updated: 2001-07-24
  • Resolved: 2001-07-24
Related Reports
Duplicate :  
Description

Name: krT82822			Date: 12/21/98


A button with the default system font in Windows is 23 pixels tall including its border.  The corresponding JButton is much taller, giving it a
non-native appearance.  While the exact definition for the standard button height is "14 dialog units" where a dialog unit is 1/8 of the average
height of a character in the current font, a close approximation with less padding would be sufficient.
(Review ID: 48573)
======================================================================

Comments
EVALUATION Name: apC97674 Date: 11/02/99 The default button margin for BasicLookAndFeel.java is set to the value Insets(2,14,2,14) and this causes the button become too large ###@###.### ====================================================================== Name: apC97674 Date: 11/04/99 We won't fix it for the Win95 L&F, but it will be done when we do the Win98 L&F. ###@###.### ====================================================================== Name: apR10133 Date: 07/24/2001 The bug is no longer reproducible since build 66 The height of WinLAF's JButton is proper now. ###@###.### ======================================================================
24-08-2004

SUGGESTED FIX Name: apC97674 Date: 11/02/99 Override button margin in WindowsLookAndFeel to (0,4,0,4) ======================================================================
24-08-2004