I need to rearrange items that are in my GridLayout
so when a JButton
is created dynamically, that the footer (i.e. JLabel
) stays at the bottom of the grid, and the dynamically created button goes right above the footer.
Is this possible? If so can I see an example, please?
My grid currently is a
new GridLayout(intIndex, 1);
where intIndex
is incremented every time a dynamic element is created.