Low Priority redraws
hey all,
I've got an audio app with lots of things that change constantly during playback. I've found that sometimes it can be hard to use the GUI because the swing thread is busy redrawing the meters over and over again as new data comes in asynchronously rather than the rest of the GUI. For example, the user might push a button which causes a new window to open and the window opens but nothing is drawn in it for a long time. I am using the repaint() method and java 1.4.
I've found that creating a queue in a low priority thread to handle these repaints seems to help, but the code is rather convoluted, even if it is only a hundred lines or so. Is this a common problem? Is there a better way? Animation apps must have to deal with this problem, so maybe I'm missing something.
thanks for the help!

