I think that the example in the section "Writing thread-safe code" on
this page[1] should read:

  // Returns immediately
  canvas.getUpdateManager().getUpdateRunnableQueue().
      invokeLater(new Runnable() {
          public void run() {
              // Insert some actions on the DOM here
          }
      });
  
  - or -
  
  // Waits until the Runnable is invoked
  canvas.getUpdateManager().getUpdateRunnableQueue().
      invokeAndWait(new Runnable() {
          public void run() {
              // Insert some actions on the DOM here
          }
      });

[1] http://xml.apache.org/batik/javaScripting.html

-- 
Cameron McCormack
|  Web: http://mcc.id.au/
|  ICQ: 26955922

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to