change Icon in Label [message #235659] |
Thu, 14 June 2007 08:36 |
Eclipse User |
|
|
|
Originally posted by: one.eight.three.gmail.com
hi,
i have a figure with a label. this label has an icon and a text.
i would like to change the image when certain event happens.
i added a method in my shape to set the new image. this calls the
fireproperty. which then calls the figure to label.setIcon(Image);
however, nothing happens. anyone has successfully implemented this?
|
|
|
|
Re: change Icon in Label [message #235944 is a reply to message #235699] |
Tue, 19 June 2007 05:32 |
Eclipse User |
|
|
|
Originally posted by: one.eight.three.gmail.com
hi,
realised i forgot to call refreshVisuals(). so i added the call but still
no change.
i tried disposing the Label and creating a new one with the new image. but
its still the old image. i tried calling the repaint() method too. but
nothing.
|
|
|
Powered by
FUDForum. Page generated in 0.01814 seconds