I have many JPanel
with GroupLayout
and I use addContainerGap()
to add the gap on the borders. Also I have a panel with other layout (BorderLayout
) and I want to add the same gap with its container as the group layout panels (I will add it through a empty border).
So my question is, how can I get the size of a container gap? Or is it better to use another approach?
I don't find how to get the size of the container gap so the only thing I can think is adding the panel inside a panel with a group layout and add there the containers gap.