I am looking for some guidance on how to achieve a certain Swing layout.
What I am looking to achieve is at the beginning have a layout with two rows. On a user command I would like the second row to split into several columns, and for each of these column cells to recursively split as above.
E.g. at the beginning:
-------------------
| Some stuff here |
-------------------
| |
-------------------
Becomes:
-------------------
| Some stuff here |
-------------------
| stuff | stuff |
|---------|---------|
| | |
-------------------
etc.
I would have said GridBagLayout, as it gives you exactly what you want without having to combine different layout managers within panels etc
Also refer to Java Visual Guide to LayoutManagers
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With