This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 105390

Summary: API: Support glue in Horizontal/VerticalFlowLayout
Product: platform Reporter: David Kaspar <dkaspar>
Component: GraphAssignee: issues@platform <issues>
Status: RESOLVED FIXED    
Severity: blocker CC: sj-nb
Priority: P3 Keywords: API_REVIEW_FAST
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 105060    
Attachments: Patch

Description David Kaspar 2007-06-01 13:03:59 UTC
VerticalFlowLayout support justify alignment. It allows to justify width of
children. On the other hand there is no way how to specify to justify height of
children.

The best solution would be to introduce a constraint that is recognized by the
VerticalFlowLayout and would represent y-weight of assigned child widget.

Similarly for HorizontalFlowLayout.
Comment 1 David Kaspar 2007-06-01 15:36:27 UTC
The HorizontalFlowLayout and VerticalFlowLayout now recognizes Number-class
constraints and split remaining space in parent widget to particular widgets
based on the value of constraints.
See test.layout.WeightLayoutFlowTest example.
Comment 2 David Kaspar 2007-06-01 15:36:37 UTC
Created attachment 43115 [details]
Patch
Comment 3 David Kaspar 2007-06-08 09:40:29 UTC
Committed in the main trunk.