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 - API: Support glue in Horizontal/VerticalFlowLayout
Summary: API: Support glue in Horizontal/VerticalFlowLayout
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Graph (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@platform
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks: 105060
  Show dependency tree
 
Reported: 2007-06-01 13:03 UTC by David Kaspar
Modified: 2007-06-08 09:40 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments
Patch (16.47 KB, patch)
2007-06-01 15:36 UTC, David Kaspar
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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.