02-22-2011 07:26 PM
# I tried to change the world, but I couldn't find the source code #
Solved! Go to Solution.
02-22-2011 09:11 PM
invokeLater runs on the Event Thread, so effectively this means that there is only one Server running all the requests. So they will be run sequentially., but because you are running on the Event Thread, the screen can not be updated. So your animation will not run.
In your situation, I suggest that you need to play all the notes using a single Thread that is NOT the EventThread. One option is to create a queue of notes for a Thread to play, and that Thread just picks a note, plays it, picks the next note, plays it and so on. Each note has an animation, so you must play this animation, and must get this to run on the Event Thread, but your single Server Thread should not move on to the next note until this animation has completed. So you will need some sort of listener interface to the processing that you launch on to the Event Thread to run the animation.
This is possible more difficult to explain that to do, I hope you understand!