I have two panels that I want to organize onto another panel.
I need a container that will allow me to split them in half. So each panel takes up half the containing panel (separated top/bottom style), like in the image below:
-------
| |
| |
-------
| |
| |
-------
No, not BoxLayout, GridLayout will allow you to use two equal halves, i.e.,
new GridLayout(2, 1)for two rows, one column — but more importantly you’re far better off reading the tutorials and API before asking this here as it’s all explained in detail: Lesson: Laying Out Components Within a Container