When [re]setting the text on a Button via the setText() method, the icon image is cleared out (since setText() calls DOM.setInnerHtml() and the <img> tag is part of the innerHtml). To fix this, I found that adding the line: