xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ryan Wilson" <ryan.wil...@ayokasystems.com>
Subject Attempting to use text causes lock up
Date Sun, 10 Aug 2008 06:29:19 GMT
I have been attempting to add text to an svg document while it is being
displayed by SVGCanvas.However, every time the code reaches the append(text)
call the whole program locks up. Am I missing a step?

The code in question:

Element text = document.createElementNS(svgNS, "text");
//Text value = document.createTextNode("Broccoli and Cheese");


text.setAttributeNS(svgNS, "fill", "red");
text.setAttributeNS(svgNS, "x", "0");
text.setAttributeNS(svgNS, "y", "0");

Element svgRoot = document.getDocumentElement();

This code is being executed from within a object being fed to the
updaterunnablequeue. The two other appends work without complaint, only the
text rendering is causing problems.
The machine running this code is an Ubuntu 8.04 setup with java 1.6 running.

Ryan Wilson

View raw message