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 161420

Summary: Improve handling of overlapping components
Product: guibuilder Reporter: _ gtzabari <gtzabari>
Component: CodeAssignee: issues@guibuilder <issues>
Status: NEW ---    
Severity: blocker    
Priority: P2    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

Description _ gtzabari 2009-03-29 22:14:57 UTC
The current form editor handling of z-order is very confusing. Clicking anywhere always selects the inner-most component
even if another component has already been selected. I am expecting Netbeans to respect the component which is already
selected, as follows:

1) Select a container
2) Press the left mouse button on a component inside the container and begin dragging
3) Currently Netbeans will deselect the container and begin dragging the component, instead I want it to drag the container

Alternatively,

1) Place a large component over [0, 0, 100, 100]
2) Place small components on top of it (for example, radio buttons over an image background)
3) Try to click and drag the parent component versus the small components. Netbeans makes it difficult or impossible to
select one versus the other and drag it.

When components are very close to one another or overlap we should be able to select them from the Inspector list, then
drag them in the graphical display. Netbeans should know that we're trying to drag the component which is already
selected if our mouse clicks land inside the bounds of the selected component.

I've set the priority to P2 because I don't think there is a reasonable workaround for this issue.