Search code examples
javaswinguser-interfacelayoutgridbaglayout

How to set gaps for ALL Components in the GridBagLayout?


When you are using group layout you set all the gaps with:

setAutoCreateGaps(true);
setAutoCreateContainerGaps(true);

Is there a same function for GridBagLayout?


Solution