Batik extensions : svg + swing components

TAUVEL Jeremie <[email protected]>
Newsgroups gmane.text.xml.batik.user
Message-ID <0CF3DC3159572A4FB1A46CA2DB0751CF1ABF0954D4@PRI-MBX-101.dom1.vinci-energies.net>
Hello,

I would like to use batik extensions to add swing components into batik.
I wrote my Batik DOM extension, my Batik bridge extension and implemented the primitivePaint method in a new class who extend AbstractGraphicsNode.
At this step I can see my swing components (JButton, JTextField...) to the screen with the SVG objects...

But now I would like to interact with my swing components and at this time, I don't know how I can do it...
1/ If I click on the component, nothing append, there is no events, I can do nothing with it.
2/ If I do "add(mySwingComponent)" on the JSvgCanvas I can interact with my swing component but  it is to me to calculate positioning, zooming, scrolling...

So, If anyone succeeded in making  swing components interactive when showed in JSvgCanvas (with the bridge extension method), I would be very grateful for the help who you can bring to me.

Best regards and thanks in advance.

Jeremie TAUVEL
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.