I have a MigLayout that I’d like to add components to dynamically, while keeping two buttons at the bottom of the frame (because that’s intuitive).
Firstly, I’d like to know if what I’m currently doing is the best way to go about it, and secondly how to get what I’m trying to do to actually work.
At the moment, I’m using the MigLayout’s “grid” to position the dynamically-added components, and then using the MigLayout’s “border” to position the fixed components but I can’t get both buttons to sit on the south border next to one another.
According to the Quickstart PDF, this should be possible (and I quote, “you aren’t confined to use only one component per side”) but it doesn’t go on to say how you achieve this.
Personnally I’d rather split my JFrame in 2 JPanels with a BorderLayout. Place the MigLayout form within a JPanel in the CENTER area, and the the buttons within a Box in the SOUTH area.
EDIT
With an example it even better 😉