I've seen some people using the setAlignmentX()
and setAlignmentY()
methods without a BoxLayout (e.g. when using a BorderLayout and other kinds of layouts).
Is this correct or does it do something at all? I haven't found any documentation explaining the use of alignmentX and alignmentY in JComponents but I have always thought it only affects BoxLayouts.