如题,求解。一个窗体有标题栏,但是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.