Duplicate :
|
Name: diC59631 Date: 01/04/99 If the text property of a JButton has very few characters, such as the common "OK" button, the preferred width of the button is completely inappropriate. The Windows style guide suggests that all buttons maintain a common width (typically 75 pixels) unless the text is too wide, and then expand them. JButton's Windows look and feel could implement this by returning a minimum preferred width of 75 for buttons that contain text. (Review ID: 48575) ======================================================================