Having trouble changing the icon for a pushbutton in the java code.

In the wtkx I can do this:
<content:ButtonData icon="@myimage.png"/>

But in the java code I cannot do this:
((ButtonData)someButton.getButtonData()).setIcon("@mysecondimage.png");

I get: iconURL is null

How am I supposed to define it here?

Thanks!
-- 
View this message in context: 
http://apache-pivot-users.399431.n3.nabble.com/How-to-dynamically-change-pushbutton-icon-tp815958p815958.html
Sent from the Apache Pivot - Users mailing list archive at Nabble.com.

Reply via email to