Hi Sudhakar,

Sudhakar S <[EMAIL PROTECTED]> wrote on 08/21/2006 10:24:47 AM:

  I repeat:

> >   You have to let the swing thread return.

> My requirement is that I should synchronize update
> thread(getUpdateManager().getUpdateRunnableQueue().invokeLater) with 
main
> thread. 

    Synchronize can mean many things.  I think you mean that you
don't want the main thread to continue until the runnable in the
UpdateManager has completed.

    This is incompatible with the architecture of Batik.  You
_must_ let the swing thread (what I believe you are calling your
"main thread") return otherwise Batik/Swing will lock up.

> > I don't know what you are trying to do so I can't suggest how to
> > do it.  Why do you want to block the swing thread until the
> > Runnable in the update manager completes?

  Please answer this question, or I can't help you: Why do you want 
the swing thread to block until the runnable completes?

> So I have created third thread with ?invokeAndWait?. Since it is
> called from third thread, I couldn?t synchronize it with main thread. So 
can
> you please tell how to synchronize  ?invokeAndWait? with my main thread?

   You are likely going to have to 'deconstruct' part of your
application.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to