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 239250 - Absolute Layout does not allow mutliple controls to be Same Sized nor Aligned.
Summary: Absolute Layout does not allow mutliple controls to be Same Sized nor Aligned.
Status: RESOLVED DUPLICATE of bug 76116
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 7.4
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-08 23:04 UTC by wyattbiker
Modified: 2013-12-09 16:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description wyattbiker 2013-12-08 23:04:04 UTC
Absolute Layout will not allow multiple controls to be same sized nor same aligned (menus are grayed out). 

I know Free Design Layout does this, however Free Design does not allow controls to touch or be overlayed. (Ive posted separate bug about this).
Comment 1 Tomas Pavek 2013-12-09 16:52:16 UTC
The "same size" computed dynamically as the maximum of the preferred sizes of given components is only supported by Free Design (GroupLayout). AbsoluteLayout is a very simple layout manager that can't do that.

You can set a specific absolute size in pixels to given components and so make them have the same size this way. Or set them the same position coordinate. It's rather easy. Some context menu action could make that more comfortable (bug 76116 is about that), but the result would be the same. I.e. hardcoded absolute size, that's how AbsoluteLayout works.

*** This bug has been marked as a duplicate of bug 76116 ***