[SWINGX-1443] VerticalLayout and HorizontalLayout add gap after last component Created: 04/May/11  Updated: 05/May/11  Resolved: 04/May/11

Status: Resolved
Project: swingx
Component/s: Accessories
Affects Version/s: 1.6.2
Fix Version/s: 1.6.3

Type: Bug Priority: Major
Reporter: Karl Schaefer Assignee: Karl Schaefer
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

Both HorizontalLayout and VerticalLayout add the gap unconditionally for each component. This is incorrect. The gaps should appear only between managed components.



 Comments   
Comment by Karl Schaefer [ 04/May/11 ]

SWINGX-1443: Fix layouts to ensure that the gap is only placed between components. (Was incorrectly placing gaps after last as well.)

swingx-core/src/main/java/org/jdesktop/swingx/HorizontalLayout.java
swingx-core/src/main/java/org/jdesktop/swingx/VerticalLayout.java
swingx-core/src/test/java/org/jdesktop/swingx/HorizontalLayoutTest.java
swingx-core/src/test/java/org/jdesktop/swingx/VerticalLayoutTest.java

Committed revision 4006.

Generated at Sat May 28 05:00:16 UTC 2016 using JIRA 6.2.3#6260-sha1:63ef1d6dac3f4f4d7db4c1effd405ba38ccdc558.