I agree that the swing timer seems like the better approach. I never really looked at that before. I just had a look at the documentation and source code and it seems like it ends up doing the same thing I was which is submitting user code to run on the event thread at predefined intervals. Whlie I'm not sure it will help my code run better, I'm sure it will make my code look nicer because it handles things that I coded explicitly. I'll give it a try when I get time to play with this again. Thanks
David

Thus Spoke Ted Hill:
Instead of using invokeAndWait from a background thread, I think using a
Swing Timer would be a better choice.

See:

http://java.sun.com/docs/books/tutorial/uiswing/misc/timer.html


-----Original Message-----
From: Discussion list for Java 2D API
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to