clickable and setContents [message #208380] |
Wed, 01 February 2006 21:06 |
Eclipse User |
|
|
|
Originally posted by: ian.ianbull.com
I have a clickable figure on my canvas. I have an action listener on
the clickable, and one of the things the action listener does is reset
the model (i.e. sets a new contents). This works, and a whole new model
is displayed. The clickable is not displayed (because it is part of the
old model).
Everything works fine, until I try to do something with my mouse (cilck
on something, move it, etc...). the method draw2dBusy() always returns
true, and it seems that the inputEvent for any new mouse movement still
points to the old clickable. (The one that is not around). If I add a
new clickable to my new model, and interact with that (mouse over, mouse
click, etc...) then draw2D is no longer busy.
I don't know if this made much sense... but I was wondering if anyone
had any advice? Maybe I should not be setting contents in my action
listener. It seems to me that I am not letting the event finish properly.
Any advice would help,
Ian
|
|
|
Powered by
FUDForum. Page generated in 0.03585 seconds