title: In which components does GridLayout class setHgap() and setVgap() creates the gaps
body: <p>I am using a grid-layout to set a group of around 256 Check-boxes on a JPanel. In the grid-layout documentation i can see that there are 2 methods i.e setHgap() and setVgap(). I am not sure between which components do these methods create gaps; would it be the adjacent checkboxes or the other components within the JPanel.</p>