pivot-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JohnRodey <timothydd...@yahoo.com>
Subject How to dynamically change pushbutton icon?
Date Thu, 13 May 2010 22:07:13 GMT

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.

Mime
View raw message