方法一:Box.createHorizontalStrut()和Box.createVerticalStrut(int width)方法为使控件在(Box)中增加一定的宽度
方法二:Box.createHorizontalGlue()和Box.createVerticalGlue()方法为使控件在(Box)中自动扩充平均分配排列
方法三:Box.createRigidArea(Dimension d)以相应的高和宽进行真充
转载于:https://www.cnblogs.com/sangrei/archive/2007/01/29/633793.html