Auto-fit a svg file to window?

254 Views Asked by At

I have a svg file and it's displaying all right. Now, I want it to fit the window but I couldn't find something like .AutofitToWindow. I can't change the svg file. Please help.

1

There are 1 best solutions below

0
On

Put whatever component renders the SVG into the CENTER constraint of a BorderLayout.