You need to set the Nodevalue in the UpdateManager Thread:
// SVGCanvas is an instance of a JSVGCanvas.
updateM = svgCanvas.getUpdateManager(); updateM.getUpdateRunnableQueue().invokeLater(new Runnable() {
public void run() {// The code that does changes to the document from another thread goes here
document.getElementById("room1").getFirstChild().setNodeValue(str);
}
});
Good Luck,
Andres Toussaint.
On May 8, 2005, at 5:13 AM, ææ è wrote:
hi,all:
Have two threads.The main application and a receice thread.The latter recevice some data from server.I update some attributes in document tree in the receive thread as following:
Â
Âdocument.getElementById("room1").getFirstChild().setNodeValue(str);
Â
But the svg picture in main application dose not update too althought
Â
canvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC);
Â
how can i solve it?
Do You Yahoo!? æåäçäæåèçéèåèçé
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
