by Daniel Pitts <newsgroup.spamfilter@[EMAIL PROTECTED]
>
May 5, 2008 at 04:34 PM
Paul Tomblin wrote:
> I've got a button callback that does some complicated processing, and at
> one part is does a setCursor to turn on a busy cursor, and then later
> clears it. Most of the time, we don't actually see the cursor change.
Am
> I right in thinking that the complicated processing needs to be put in
> another thread, with the cursor changes done in
> "SwingUtiliities.invokeLater" calls?
>
> (This is Java 1.6 on Linux, by the way.)
>
You are absolutely right. Never block the EDT for more than a few
milliseconds if you can help it.
--
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>