<Swing Dev> Review request for 8013566: Failure of GroupLayout in combination of addPreferredGap and addGroup's

Semyon Sadetsky semyon.sadetsky at oracle.com
Tue Mar 10 11:28:59 UTC 2015


On 3/10/2015 2:09 PM, Alexander Scherbatiy wrote:
> What is the reason that the class of the manual inserted gap is 
> AutoPreferredGapSpring and not GapSpring?
>

According to comments in the code

*AutoPreferredGapSpring*
Spring reprensenting the distance between any number of sources and
targets.  The targets and sources are computed during layout.  An
instance of this can either be dynamically created when
autocreatePadding is true, or explicitly created by the developer.

*GapSpring*
Spring represented a certain amount of space.

so they have really different functionality.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20150310/4f5ca23f/attachment.html>


More information about the swing-dev mailing list