Java 怎样获取标题栏的高度
1个回答
展开全部
自己已找到方法(没办法,没人回,只能靠自己。。):
用java.lang.Container的getInsets()方法可以获得标题栏的宽度和高度,Insets对象是容器边界的表示形式,有top,left,right,bottom四个属性可用。
An Insets object is a representation of the borders of a container. It specifies the space that a container must leave at each of its edges. The space can be a border, a blank space, or a title.
用java.lang.Container的getInsets()方法可以获得标题栏的宽度和高度,Insets对象是容器边界的表示形式,有top,left,right,bottom四个属性可用。
An Insets object is a representation of the borders of a container. It specifies the space that a container must leave at each of its edges. The space can be a border, a blank space, or a title.
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询