Creates a preferred gap with the specified size constraints between the two specified elements.
Creates a preferred gap with the specified size constraints between the
two specified elements. The minimum size is the preferred size of the gap
which is defined by the LayoutStyle
used.
the element "in front of" the gap
the element "behind" the gap
the relationship between the two components
the preferred size >= 0 of the gap (or one of UseDefault
and Infinite
)
GroupLayout.Group#addPreferredGap(javax.swing.JComponent, javax.swing.JComponent, javax.swing.LayoutStyle.ComponentPlacement, int, int)
Creates a rigid gap between the two specified elements.
Creates a rigid gap between the two specified elements. The minimum
size is the preferred size of the gap which is defined by the
LayoutStyle
used.
the element "in front of" the gap
the element "behind" the gap
the relationship between the two components
GroupLayout.Group#addPreferredGap(javax.swing.JComponent, javax.swing.JComponent, javax.swing.LayoutStyle.ComponentPlacement)
Creates a preferred gap with the specified size constraints between the two elements that surround this gap.
Creates a preferred gap with the specified size constraints between the
two elements that surround this gap. The minimum size is the preferred
size of the gap which is defined by the LayoutStyle
used.
the relationship between the two components
the preferred size >= 0 of the gap (or one of UseDefault
and Infinite
)
GroupLayout.Group#addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement, int, int)
Creates a preferred gap between the two elements that surround this gap.
Creates a preferred gap between the two elements that surround this gap.
the relationship between the two components
GroupLayout.Group#addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement)
A gap between two components with a size that is defined by the
LayoutStyle
used, depending on the relationship between the components.