I have three Java JCheckboxes in a column, arranged by setting the layout of the container JPanel to GridLayout(3, 1, 1, 1). When I r
JCheckboxes
JPanel
GridLayout(3, 1, 1, 1)
Does it help if you set the checkbox's border?
JCheckBox checkBox = new JCheckBox(); checkBox.setBorder(BorderFactory.createEmptyBorder());
It may also be due to the Look & Feel's UI delegate's rendering. You typically have little control over this.