Hi.

For avoid the Null value of UpdateManager in JSVGCanvas, I want wait for the "documentLoadingCompleted" event.My code is following:
.....
                         final Object lock = new Object(); 
              svgCanvas.addSVGDocumentLoaderListener(new
                          SVGDocumentLoaderAdapter() {
                          public void documentLoadingCompleted(
                              SVGDocumentLoaderEvent
                              e) {
                                   lock.notifyAll();
                          }
                      });
              File file = new File("filter.svg");
              svgCanvas.loadSVGDocument(file.toURL().toString());
                             
            
             lock.wait();
..............
I found the event is not fired.But If I delete the "lock.wait()", the event will be useful.Is that when "wait()" running , the thread can not receive any event?
Or could anybody tell me how to keep the UpdateManager is not null by using another method?Thx  lot.


雅虎免费G邮箱-No.1的防毒防垃圾超大邮箱
雅虎助手¨D搜索、杀毒、防骚扰

Reply via email to