Use a JFrame
with a BorderLayout
.
- In the BorderLayout.PAGE_START you add a panel with one grid
- In the BorderLayout.CENTER you add the label
- In the BorderLayout.PAGE_END you add the second panel.
Read the section from the Swing tutorial on How to Use a BorderLayout for more information and working examples.
3
solved Displaying a grid as 2 parts in java