Damjan
Damjan

Reputation: 81

Auto-fit a svg file to window?

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.

Upvotes: 0

Views: 249

Answers (1)

Andrew Thompson
Andrew Thompson

Reputation: 168825

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

Upvotes: 0

Related Questions