Hi,
How can I change a button icon in onclick event?
button.setIcon() doesnt work (in smartGWT, build 1.0b1).
That's what I'm trying to do:
thanks!
How can I change a button icon in onclick event?
button.setIcon() doesnt work (in smartGWT, build 1.0b1).
That's what I'm trying to do:
Code:
Button iconOnly= new Button(); iconOnly.setIcon("icon1.png"); Button otherButton = new Button(); otherButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { iconOnly.setIcon("icon2.png"); //this line has no influence in UI } });
Comment