Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4779988
Votes 3
Synopsis windows look&feel: standard button size is wrong
Category java:classes_swing
Reported Against mantis
Release Fixed
State 6-Fix Understood, bug
Priority: 4-Low
Related Bugs 4268204 , 6394745
Submit Date 16-NOV-2002
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.
Work Around
N/A
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.

  xxxxx@xxxxx   2003-01-22
Comments
  
  Include a link with my name & email   

Submitted On 11-JUN-2003
sravyts
An easy way to see this, is to put a button next to a 
jtextfield. The button is higher on the Classic Theme  (XP) or 
on Win2000. Running the same code on f.i. the Silver Theme 
(XP) , you see that this is a lot better. This really makes an 
application ugly and unacceptable for someone who has an 
eye for GUI.


Submitted On 11-JUN-2003
sravyts
It is not only the buttons in OptionPane or FileChooser. All 
the buttons are too high compared to the Windows buttons 
(i'm comparing on a win 2000 machine.) On XP, there is only a 
problem with the classis theme!
It seems that the margins on the button are just too high


Submitted On 01-AUG-2003
lbarowski
The fix must still take into account the font size though.
The font and font size may be changed in various ways,
and may not be the same as the system defaults (for
example, our application has a "scale all fonts" feature).



PLEASE NOTE: JDK6 is formerly known as Project Mustang