Could someone please explain the differences between
Box.createRigidArea(dimension)
and
Box.createHorizontalStrut(width)
Box.createVerticalStrut(height)
Is "Rigid area" a strut whose both dimensions can be user-specified, or is there more to it?
From the tutorial
http://docs.oracle.com/javase/tutorial/uiswing/layout/box.html
It looks like using struts as a filler may present problems when composing different BoxLayouts meanwhile rigid areas are more flexible since they allow you to specify both dimensions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With