You could use BorderLayout
and add the label to the PAGE_END
position of the container
setLayout(new BorderLayout());
add(itemLabel, BorderLayout.PAGE_END);
Of course you'll need to set the horizontal alignment to achieve the alignment along the X-axis as produced originally by the label's JPanel
FlowLayout
container
JLabel itemLabel = new JLabel("ccc", JLabel.CENTER);