--- a/jdk/src/share/classes/javax/swing/plaf/synth/SynthButtonUI.java Fri Aug 08 20:49:26 2008 +0400
+++ b/jdk/src/share/classes/javax/swing/plaf/synth/SynthButtonUI.java Mon Aug 11 16:39:17 2008 +0400
@@ -262,7 +262,7 @@
* Returns the default icon. This should NOT callback
* to the JComponent.
*
- * @param b AbstractButton the iocn is associated with
+ * @param b AbstractButton the icon is associated with
* @return default icon
*/
@@ -445,9 +445,7 @@
* Returns the Icon used in calculating the pref/min/max size.
*/
protected Icon getSizingIcon(AbstractButton b) {
- // NOTE: this is slightly different than BasicButtonUI, where it
- // would just use getIcon, but this should be ok.
- Icon icon = (b.isEnabled()) ? b.getIcon() : b.getDisabledIcon();
+ Icon icon = getEnabledIcon(b, b.getIcon());
if (icon == null) {
icon = getDefaultIcon(b);
}