United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-4199085 : JButtons are too tall and too narrow in Windows look and feel.

Details
Type:
Bug
Submit Date:
1998-12-22
Status:
Closed
Updated Date:
2001-07-24
Project Name:
JDK
Resolved Date:
2001-07-24
Component:
client-libs
OS:
generic
Sub-Component:
javax.swing
CPU:
generic
Priority:
P4
Resolution:
Cannot Reproduce
Affected Versions:
1.2.0
Fixed Versions:

Related Reports
Duplicate:

Sub Tasks

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
SUGGESTED FIX



Name: apC97674			Date: 11/02/99


Override button margin in WindowsLookAndFeel to (0,4,0,4)

======================================================================
                                     
2004-08-24
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.

###@###.###

======================================================================
                                     
2004-08-24



Hardware and Software, Engineered to Work Together