To fit your JSVGCanvas to the frame, set the LayoutManager of the frame's
contentPane to BorderLayout and add the canvas with add( <canvas> ,
BorderLayout.CENTER );

The canvas will fit the image to the frame and resize automatically with the
frame.

Is this what you're looking for?

----- Original Message -----
From: "Larry Ai" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 23, 2003 2:20 PM
Subject: scalable/resizable svg image


>
>    I draw an image on a SVGGraphic2D and output the
> image in svg using SVGGraphic2D.stream to a file.
>
>    I, later, load that image in a Jframe and want to
> make the structure resizable when user resizes the
> frame.
>
>    Currently I can only display a fix size image and
> could anyone tell me how to make it resizable?
>
>    Thanks!
>
> Larry
>
> __________________________________
> Do you Yahoo!?
> Yahoo! SiteBuilder - Free, easy-to-use web site design software
> http://sitebuilder.yahoo.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

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

Reply via email to