Button Description Problem

button.setDescription(“

Sample Description
”);

Here the image sample.png didn’t display. Please anybody help me…

This is not the way of setting an image on the button. Use the setIcon(…) method.

Syam’s right about the setIcon method instead.

If you’re curious about what you
can
put into a description, see the
getDescription information in the API docs
.

Cheers,
Bobby