java 如何设置按钮大小

[an error occurred while processing the directive]

设置按钮大小的替代方法

可以使用setMinimumSize和setMaximumSize方法来限制按钮大小,或者在使用绝对布局(null布局)时,通过setBounds(x, y, width, height)直接设置按钮位置和大小。不过,绝对布局不推荐用于复杂界面,因为缺少自适应性。

[an error occurred while processing the directive]

Copyright © 2088 2010年南非世界杯_韩国世界杯 - sopeiyin.com All Rights Reserved.
友情链接