Sets the receiver's text.
<p>
This method sets the button label. The label may include
the mnemonic character but must not contain line delimiters.
</p>
<p>
Mnemonics are indicated by an '&' that causes the next
character to be the mnemonic. When the user presses a
key sequence that matches the mnemonic, a selection
event occurs. On most platforms, the mnemonic appears
underlined but may be emphasized in a platform specific
manner. The mnemonic indicator character '&' can be
escaped by doubling it in the string, causing a single
'&' to be displayed.
</p><p>
Note that a Button can display an image and text simultaneously
on Windows (starting with XP), GTK+ and OSX. On other platforms,
a Button that has an image and text set into it will display the
image or text that was set most recently.
</p>
@param string the new text
@exception SWTException <ul>
<li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li>
<li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li>
</ul>
Sets the receiver's text. <p> This method sets the button label. The label may include the mnemonic character but must not contain line delimiters. </p> <p> Mnemonics are indicated by an '&' that causes the next character to be the mnemonic. When the user presses a key sequence that matches the mnemonic, a selection event occurs. On most platforms, the mnemonic appears underlined but may be emphasized in a platform specific manner. The mnemonic indicator character '&' can be escaped by doubling it in the string, causing a single '&' to be displayed. </p><p> Note that a Button can display an image and text simultaneously on Windows (starting with XP), GTK+ and OSX. On other platforms, a Button that has an image and text set into it will display the image or text that was set most recently. </p> @param string the new text
@exception SWTException <ul> <li>ERROR_WIDGET_DISPOSED - if the receiver has been disposed</li> <li>ERROR_THREAD_INVALID_ACCESS - if not called from the thread that created the receiver</li> </ul>