英文:
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?
专注分享java语言的经验与见解,让所有开发者获益!
评论