How to remove vertical gap between two cells in MigLayout?
问题 Very simple question: How can I remove the vertical gap between the two cells containing the two JCheckBox ? I have marked the gap in the picture with a red border. And here is the code: import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JFrame; import javax.swing.JPanel; import net.miginfocom.swing.MigLayout; public class Main { public static void main(String[] args) { JPanel somePanel = new JPanel(); somePanel.setLayout(new MigLayout("insets 0, debug", "", ""));