Microsoft SDK for Java

ToolBarButton.setText

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.

© 1999 Microsoft Corporation. All rights reserved. Terms of use.