The allocation of checkerboard squares into components is governed by an instance of the GridBagConstraints class:
GridBagConstraints
GridBagConstraints gbc = new GridBagConstraints();