APIdia Launch Partner
Top Description Fields Methods
java.awt.peer

public Interface ButtonPeer

extends ComponentPeer
Known Direct Implementers
sun.awt.X11.XButtonPeer
Imports
java.awt.Button

The peer interface for Button. The peer interfaces are intended only for use in porting the AWT. They are not intended for use by application developers, and developers should not implement peers nor invoke any of the peer methods directly on the peer instances.

Field Summary

Inherited from java.awt.peer.ComponentPeer:
DEFAULT_OPERATIONNO_EMBEDDED_CHECKRESET_OPERATIONSET_BOUNDSSET_CLIENT_SIZESET_LOCATIONSET_SIZE

Method Summary

Modifier and TypeMethod and Description
public void
setLabel(String
the label string to set
label
)

Sets the label that is displayed on the button.

Inherited from java.awt.peer.ComponentPeer:
applyShapecanDetermineObscuritycoalescePaintEventcreateBufferscreateImagecreateVolatileImagedestroyBuffersdisposeflipgetBackBuffergetColorModelgetFontMetricsgetGraphicsgetGraphicsConfigurationgetLocationOnScreengetMinimumSizegetPreferredSizehandleEventhandlesWheelScrollingisFocusableisObscuredisReparentSupportedlayoutpaintprintreparentrequestFocussetBackgroundsetBoundssetEnabledsetFontsetForegroundsetVisiblesetZOrderupdateCursorImmediatelyupdateGraphicsData

Method Detail

setLabelback to summary
public void setLabel(String label)

Sets the label that is displayed on the button. Can be null when the button should not display a label.

Parameters
label:String

the label string to set

See Also
Button#setLabel