Hello,
My app needs to update a database and the canvas for some functions. I've
tried code similiar to that below, but I've had the event dispatch thread
deadlock. I thought I'd be safe using invokeAndWait within a SwingWorker.
Is this a thread safe operation?
Thanks,
Greg
SwingWorker worker = new SwingWorker(){
public Object construct(){
//start database transaction
canvas.getUpdateManager().getUpdateRunnableQueue().invokeAndWait(new
Runnable(){
public void run(){
//perform some dom updates
}
});
//commit database transaction
}
public void finished(){
update.dispose();
}
};
worker.start();
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]