OK, well your initialization looks correct. Where is your button code? As Thomas pointed out, if those changes are not being made in the UpdateRunnableQueue, the behavior will be as you describe. You need something like this on your button's ActionListener:
public void actionPerformed(ActionEvent actionEvent) { canvas.getUpdateManager().getUpdateRunnableQueue().invokeLater( new Runnable() { public void run() { // Move specific layer to top. } }); } Michael Bishop -----Original Message----- From: hardc0d3r [mailto:[EMAIL PROTECTED] Sent: Monday, June 25, 2007 4:05 PM To: batik-users@xmlgraphics.apache.org Subject: RE: how to update SVGCanvas without moving mouse on canvas? is this what you mean? public void initComponents() { svgCanvas = new JSVGCanvas(); svgCanvas.setDocumentState(JSVGCanvas.ALWAYS_DYNAMIC); registerListeners(); DOMImplementation impl = SVGDOMImplementation.getDOMImplementation(); doc = (SVGDocument)impl.createDocument(svgNS, "svg", null); svgCanvas.setDocument(doc); } if so, its still not updating.. what i also want to happen is when i press a button, i want a specific layer to be on top. that only happens when i press the button and move my mouse on the canvas.. -- View this message in context: http://www.nabble.com/how-to-update-SVGCanvas-without-moving-mouse-on-ca nvas--tf3975725.html#a11294545 Sent from the Batik - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]