Karlovsky120
Karlovsky120

Reputation: 6352

set default gap to 0 in MiG Layout

Is there a way to make the default gap between components of all layouts ever to be created in a specific program to be 0?

Is there any way to do it? If not, is there at least a way to do it on a layout-level (new MigLayout("gaptozero");)?

Upvotes: 2

Views: 1106

Answers (1)

sdasdadas
sdasdadas

Reputation: 25106

Try setting MigLayout("insets 0");

EDIT:

To fix for gaps (see comments) you can simply write: MigLayout("gap 0"); Or, gapx and gapy.

All this comes from: http://migcalendar.com/miglayout/cheatsheet.html

Upvotes: 2

Related Questions