Overview | Methods | This Package | All Packages
Sets the button's text.
Syntax
public final void setText( String text )
Parameters
text
The text to display on this button.
Remarks
While text is set on a per-button basis, text alignment, which governs how a caption is positioned relative to a button's image, is set on a per-toolbar basis. To set text alignment for a toolbar, use the ToolBar.setTextAlign method.