Hello,
  I am required to add Swing components to the SVG canvas. I want to use the
batik extensions.
 The trouble I am facing is in the actual rendering class:

public class SwingGraphicsNode extends AbstractGraphicsNode
{
        JTextField fComponent = new JTextField(10);

        public void primitivePaint(Graphics2D g2d) {
                       Rectangle2D bounds = getBounds();
                       g = g2d.create();
                       g.translate(20,20); //Example translation
                       fComponent.paint(g);
        } 

}
  

The output I am getting in the JSVGCanvas is a static version of JTextField.
I cannot enter characters or do anything with it. 
Any ideas? I believe if I can access JSVGCanvas or the related class where
the components are being rendered, then I can directly add my swing
component to it. But couldn't get how to get it. Batik developers pls. help.


************************************************************************** 
This email (including any attachments) is intended for the sole use of the
intended recipient/s and may contain material that is CONFIDENTIAL AND
PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or
distribution or forwarding of any or all of the contents in this message is
STRICTLY PROHIBITED. If you are not the intended recipient, please contact
the sender by email and delete all copies; your cooperation in this regard
is appreciated.
**************************************************************************

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

Reply via email to