问题
Solved using box layout in the panels that have 1 column and many rows.
回答1:
I suggest you use a Table instead of working with single labels and GridBagLayout.
It might be possible to use Colspan, too, see: Jtable Row Span and Column Span
If its just a View (No Buttons, etc.), you could also consider to use a JEditorPane and render your View with HTML, that might be the easiest way.
来源:https://stackoverflow.com/questions/32973167/gridbaglayout-formatting