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 78056

Summary: Drop target is painted on the wrong order for Flow Layout
Product: guibuilder Reporter: Marian Mirilovic <mmirilovic>
Component: CodeAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Marian Mirilovic 2006-06-16 12:07:02 UTC
NB dev (2006006151800), JDK 6.0 (b87)

Steps to reproduce:
- run IDE
- create JFrame
- change layout to Flow Layout
- add one JButton
- try to add second JButton on the right side of the previous button
-> destination drop is painted still on the left side ...
Comment 1 Joshua Marinacci 2006-11-08 10:37:23 UTC
The root cause of this bug is that a field was being shadowed by a parameter variable. This caused the 
newIndex variable to always be 0 when dragging a new component from the palette, no matter where the 
user is actually dragging the component.  Changing to this.index fixes it. This should fix similar issues 
with BoxLayout and probably other layouts as well.
Comment 2 Marian Mirilovic 2006-11-24 14:46:17 UTC
verified in NB Dev (200611231637)