Reputation: 101
I have some code that code that's supposed to animate parts of my program, and right now, the animation dimensions are hard coded, i.e. every distance and location is specified by a number. I was just wondering, is there a way to rescale the animation panel, so that the hard-coded thing will work on computers with smaller screens?
Upvotes: 0
Views: 36
Reputation: 168825
Use a scale instance of an AffineTransform
for this. Here is an example of scaling text.
Upvotes: 1