Skip to main content

setLocation(x,y) vs. paint method

No replies
mmckenna
Offline
Joined: 2008-07-31

I've been playing around with trying to get better better performance out of animating AWT shapes around the screen. Without having any data to quantify my experiment, it seems as if using the setLocation(x,y) method allows for smoother animation than moving the shape by repainting.

Does that make sense, or am I imagining things?

Thanks,

Matt