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 239249 - Allow controls to touch or overlay when in Free Design Layout.
Summary: Allow controls to touch or overlay when in Free Design Layout.
Status: NEW
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 7.4
Hardware: Macintosh (x86) Mac OS X
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-12-08 22:59 UTC by wyattbiker
Modified: 2013-12-09 16:51 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
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 22:59:33 UTC
When I move controls I cannot touch them or overlay them in Free Design Layout. 

I know this can be done with Absolute Layout, however absolute does not allow you to align/or resize multiple controls (the Align and Same Size menus get blured out).
Comment 1 Tomas Pavek 2013-12-09 16:51:29 UTC
In general yes, this would be desirable.

For touching you can actually set the gap between the components to 0 size. It is not very usual to have touching components so I'm not sure if such positions should be offered when dragging components by the user (i.e. snap to other components without a gap). It might actually make it harder to design usual layouts. Setting the gap to zero size is not very intuitive, but a possible workaround for now.

As for overlaying components, bug 73463 is exactly about that. The Free Design needs to be learned to accept overlaying components. As a workaround it is also possible to use GridBagLayout where the components can be set to occupy the same cell. You can either design the whole form in GridBagLayout, or just a subpanel containing only the overlaying components.