可以在每个JFrame上控制GUI的缩放吗?

huangapple 未分类评论51阅读模式
英文:

Can GUI scaling be controlled on a JFrame by JFrame basis?

问题

我有一个应用程序,在这个应用程序中,我需要允许某些框架进行自动缩放(-Dsun.java2d.uiScale.enabled=true),而对于另一些框架,需要禁用缩放(-Dsun.java2d.uiScale.enabled=false)。

是否有任何方法可以在应用程序内部在构建/启动JFrame时在运行时控制缩放行为呢?

英文:

I have an application where I need to allow automatic scaling for some frames (-Dsun.java2d.uiScale.enabled=true) and disabled for others (-Dsun.java2d.uiScale.enabled=false).

Is there any way I can control scaling behaviour at run time from within the application when I construct/launch the JFrame?

huangapple
  • 本文由 发表于 2020年7月26日 07:26:36
  • 转载请务必保留本文链接:https://java.coder-hub.com/63094591.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定