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 - Drop target is painted on the wrong order for Flow Layout
Summary: Drop target is painted on the wrong order for Flow Layout
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P4 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-16 12:07 UTC by Marian Mirilovic
Modified: 2006-11-24 14:46 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 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)