11-20-2009 01:09 AM
How to call immediately paint method after create an object using picture? I've tried to use invalidate(). But when I create new object the picture does not paint until i move cursor to this object.
11-20-2009 05:09 AM
invalidate() on the Field usually works for me, however this may not cause the layout method of the Field to be executed which means size changes are not shown. Occasionally I will try Screen.invalidate(). If you put a break point in your paint method can you confirm that paint is NOT being called by either of these functions?
04-14-2010 02:56 AM
I give a System.out.println("Something"); to method:
04-14-2010 08:35 AM
"it's likely invalidate() doesn't call method paint()"
I doubt this, I suspect it just doesn't invoke your specific paint method.
Can you please create a small snippet of code that shows the problem. Please do not just give us your current classes, recreate your problem using a new Screen and none of your own classes, that are not included with the Screen. Doing this does two things:
a) As you attempt to recreate this, you may figure out where the problem is really occurring
b) If you can't figure it out, then you can place this code here and we can look at it and run it, without needing to have all your classes.