TopBlend: Here is the first difference. There are 2 differences. is old. is new.

javax.swing.plaf
Class ButtonUI


java.lang.Object
  extended by javax.swing.plaf.ComponentUI
      extended by javax.swing.plaf.ButtonUI
Direct Known Subclasses:
BasicButtonUI , MenuItemUI , MultiButtonUI

public abstract class ButtonUI
extends ComponentUI

Pluggable look and feel interface for JButton.


Constructor Summary
ButtonUI ()
           
 
Method Summary
  Icon getDisabledIcon ( AbstractButton
          Returns the icon to display when the developer has not specified a disabled icon.
 
Methods inherited from class javax.swing.plaf. ComponentUI
contains , createUI , getAccessibleChild , getAccessibleChildrenCount , getMaximumSize , getMinimumSize , getPreferredSize , installUI , paint , uninstallUI , update
 
Methods inherited from class java.lang. Object
clone , equals , finalize , getClass , hashCode , notify , notifyAll , toString , wait , wait , wait
 

Constructor Detail

ButtonUI


public ButtonUI()
Method Detail

getDisabledIcon


 
public IcongetDisabledIcon ( AbstractButton button) 
Returns the icon to display when the developer has not specified a disabled icon.

Some look and feels might not render the disabled Icon, in which case they will ignore this.

Parameters:
button - AbstractButton requesting the Icon
Returns:
Disabled icon, or null.
Throws:
NullPointerException - if button is null
Since:
1.5
See Also:
AbstractButton.setIcon(javax.swing.Icon) , AbstractButton.setDisabledIcon(javax.swing.Icon)