JDK-4779988 : windows look&feel: standard button size is wrong
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2,6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: solaris_10,windows_2003
  • CPU: generic,x86
  • Submitted: 2002-11-16
  • Updated: 2022-08-30
  • Resolved: 2022-08-30
Related Reports
Duplicate :  
Relates :  
Relates :  
Description
The default button size in Windows is 75x23 pixels.
Swing ignores this; for example, the "OK" button in a
JOptionPane is 39x27 pixels big, and in the JFileChooser
dialogue, both the "OK" and the "Cancel" button are
73x27 pixels big.

Comments
PUBLIC COMMENTS The default button size in Windows is 75x23 pixels. Swing ignores this; for example, the "OK" button in a JOptionPane is 39x27 pixels big, and in the JFileChooser dialogue, both the "OK" and the "Cancel" button are 73x27 pixels big. This sounds insignificant, but contributes to the swing look&feel lookng "off". was originally reported as part of 4268204 which is marked as integrated, however this was never fixed.
24-09-2004

EVALUATION From an initial look at the code, it looks as if the button sizes in OptionPane and FileChooser are somewhat arbitrary (based on label size, font, standard borders, etc). We should probably modify the algoritms to more closely match those on windows so the buttons look more in proportion and aspect-ratio to the windows native buttons. ###@###.### 2003-01-22
22-01-2003