Alignment using BoxLayout
I have been recently experimenting with the "setAlignmentX()" and "setAlignmentY()" methods within the context of a BoxLayout, and all appeared well until I began adding "Box.createRigidArea(..)" components.
As the rigid area return type is "Component" as opposed to "JComponent", I am unable to invoke the above methods in order to retain a consistent alignment strategy within the parent container.
Does anyone know a way in which I can set the appropriate alignments of the objects returned by "Box.createRigidArea(..)"?
Best regards, Gemma.