Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一些代码应该为我的程序的某些部分设置动画,现在,动画尺寸是硬编码的,即每个距离和位置都由一个数字指定。我只是想知道,有没有办法重新调整动画面板,以便硬编码的东西可以在屏幕较小的计算机上工作?
为此使用an 的比例实例AffineTransform。这是缩放文本的示例。
AffineTransform