<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 12:23:14 UTC 2015


On 3/10/2015 2:38 PM, Alexander Scherbatiy wrote:
>> *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.
>>
>     What about just add a flag to the AutoPreferredGapSpring that 
> allows to distinguish a manually added gap from an auto-inserted?
>
>    Thanks,
>    Alexandr. 

Functionality of AutoPreferredGapSpring should be the same regardless 
how it was added automatically or manually.
The problem is connected to the auto insertion algorithm only. It is 
sensitive to manual AutoPreferredGapSpring added at the leading position 
and do not add extra gaps in this case, but ignores manual gaps on the 
trailing position in the child group and add extra leading gap on the 
parent group level.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20150310/e00750ba/attachment.html>


More information about the swing-dev mailing list