Combe, Colin a écrit :
The main body of the animation loop boiled down to:
synchronized (this.getTreeLock()){
invalidate();
repaint((java.awt.geom.Rectangle2D) null);
}
The getTreeLock() method will provide you with an object to use as a
lock to avoiding threading problems.
The argument to the repaint method is the area to repaint, as I
remember, if it is null it repaints everything
Yes, exactly. Invoking 'repaint(null)' should be a workaround.
The 'repaint()' method alone tries to repaint only the damaged screen area; it doesn't repaint
everything like 'repaint(null)'. So in theory 'repaint()' should be more efficient than
'repaint(null)'. However for some reasons, its look like that 'repaint()' doesn't repaint the right
screen area in this particular case. I don't know why yet.
Martin.
-------------------------------------------------------
All the advantages of Linux Managed Hosting--Without the Cost and Risk!
Fully trained technicians. The highest number of Red Hat certifications in
the hosting industry. Fanatical Support. Click to learn more
http://sel.as-us.falkag.net/sel?cmd=lnk&kid7521&bid$8729&dat1642
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users