Equivalent of serviceRepaints method in J2SE

Hello,

I am still struggling with completing my sliding puzzle game.

At the moment, I am having problems with synchronizing the animation of moving a tile from one square to another.

Currently, If I click a tile while another tile is being moved, the tile does not move by the proper amount of pixels.

In J2ME, there is a method called serviceRepaints() which blocks until all repainting has completed.

How would I accomplish the same task in J2SE?

Thanks

[498 byte] By [ANDREWP7a] at [2007-11-27 1:17:24]
# 1
You could try using RepaintManager.getDirtyRegion, but do you not have a game loop and a paint loop?
YAT_Archivista at 2007-7-11 23:53:01 > top of Java-index,Other Topics,Java Game Development...