经过反复实验,找到了一种解决方法.
解决方案:容器嵌套
在应用了BoxLayout的容器外层套一个应用了BorderLayout,根据需要,将内层容器添加到外层容器的非Center位置.这样,BorderLayout就可以限制内层容器到最合适的大小.
转载声明: 出自: Ghoul To World!作者: GreatGhoul
Ask and Learn.
转载声明: 出自: Ghoul To World!作者: GreatGhoul
©2009 Ghoul To World! | Designed by GreatGhoul | Powered by Google Blogspot
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.