根据屏幕大小更改更改字体 [英] Change Font based on screen size change
本文介绍了根据屏幕大小更改更改字体的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何实现它?
解决方案
基于监听器和框架大小,边框大小和实际的面板大小,我已经计算了各种屏幕大小范围的字体大小。
In my Java Swing application, I have buttons. If the screen size is changed, I want to change the font of my button text also.
How do I implement it?
解决方案
Thanks to all,
Based on listeners and frame size, border size and actual panel size I have figured font sizes for various screen size ranges.
这篇关于根据屏幕大小更改更改字体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文