Hi Thomas,
> The general solution to this problem is to introduce a third thread
> that can safely call invokeAndWait and then run some code in the
> Swing thread.
With third thread i can able to use "invokeAndWait". But if i tried to sync
with main thread using "join", its again getting struck. So can you please
explain bit more. so that i can sync with main thread.
Thread t1 = new Thread(new Runnable() {
public void run() {
try {
UpdateManager um = getUpdateManager();
um.getUpdateRunnableQueue().invokeAndWait(new
Runnable() {
public void run() {
render(redrw);
}
});
} catch (Exception ex) {
}
}
});
t1.start();
t1.join();
> Well you can synch it in this case but it would be more work.
Please give some more information to sync UpdateManager's thread with main
thread to perform other operations in synchronized manner.
Thanks,
Sudhakar
--
View this message in context:
http://www.nabble.com/Problem-in-invokeAndWait-tf2124331.html#a5872078
Sent from the Batik - Users forum at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]