is new.
java.lang.Objectjavax.swing.plaf.ComponentUI
javax.swing.plaf.ButtonUI
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 |
|---|
public ButtonUI()
Method Detail
|
|---|
getDisabledIcon
public
Icon
getDisabledIcon
(
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)