简体   繁体   English

使用java AWT确定字幕窗口7的大小

[英]Determine the size of caption windows 7 using java AWT

Is their a way to determine the size of window caption using Java AWT. 是他们使用Java AWT确定窗口标题大小的方法。 I just changed the caption size on my local windows 7 machine using (Start-> Control Panel -> Display ->Personalization -> Window color -> Advanced appearance settings. In the drop down select caption size and set it to 50. 我刚刚使用(开始 - >控制面板 - >显示 - >个性化 - >窗口颜色 - >高级外观设置更改了本地Windows 7机器上的标题大小。在下拉列表中选择标题大小并将其设置为50。

Any inputs on determining the caption size using Java AWT would be greatly helpful. 使用Java AWT确定字幕大小的任何输入都将非常有用。

Thanks 谢谢

Here you can find a list of properties of Windows GUI and how to retrieve them. 在这里,您可以找到Windows GUI的属性列表以及如何检索它们。 I hope you can find the appropriate property in this list. 我希望你能在这个列表中找到合适的属性。

The piece of code to do this is as follows: 执行此操作的代码如下:

Integer i = (Integer) Toolkit.getDefaultToolkit().getDesktopProperty   
("win.frame.captionHeight");
System.out.println(i.intValue());

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM