Danilo Costa wrote:
In SVGPanel I've added listeners

So you haven't really modified the behavior of the Canvas in any way, just added a few new listeners?

   Is it possible your listeners are throwing an exception?
The thumbnail knows to update it's self when it receives
those events.  At this point I think you will be best served
adding lots of System.err.println to ThumbnailDialog to see
where it is failing.

The MainFrame class (that extends a JFrame)  calls the SVGPanel and
the ThumbnailDialog:
 ....................
  JInternalFrame frameTemp = mainDesktop.getSelectedFrame();

So this has been bothering me a little. I've never used the thumbnail dialog in an internal frame before. I can't imagine why this would matter but it appears to be one of the few differences between what squiggle (which works) does and what your app (which doesn't work) does.

  You might try creating a normal JFrame.

Should I implement those listeners in The MainFrame ?
Just the way squiggle does?

I don't think the listeners are likely to be the problem. Unless they are disrupting the event dispatch.

Should I do something else I am not doing when I've implented those listeners?

No, I just wanted to make sure you weren't mucking with say the way zoom or pan works.

I've noticed that if I change de size of the JInternalFrame, the size
of the svg also changes and the thumbnailDialog is updated! But it
still doesnt work if I perform some zoom.

This means that at least some of the listeners are working.

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



Reply via email to