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.
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 ...
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.
verified in NB Dev (200611231637)