How to center content over several panels with MigLayout?
问题 I have a large panel, that contains 3 smaller panels ( locationPanel , usagePanel , structuralAspectsPanel ). Each of the smaller panels has some JLabels and JCheckBoxes on them. I went ahead and centered the components on each panel, but how can I accomplish the center them over all 3 panels? (see the black line in the center please) I have tried to use the cell-layout option in MigLayout ( new JLabel("Label here"), "cell 0 0") , but was not able to create dynamically gaps of the same size,