Button.setImage

Sets the receiver's image to the argument, which may be <code>null</code> indicating that no image should be displayed. <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 image the image to display on the receiver (may be <code>null</code>)

@exception IllegalArgumentException <ul> <li>ERROR_INVALID_ARGUMENT - if the image has been disposed</li> </ul> @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>

class Button
void
setImage

Meta