自己已找到方法(没办法,没人回,只能靠自己。。):用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.
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货