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 105128 - AIOOBE after dragging panel in BorderLayout
Summary: AIOOBE after dragging panel in BorderLayout
Status: VERIFIED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All Windows Vista
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-30 13:19 UTC by novakm
Modified: 2007-08-22 11:07 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Exception Stacktrace (2.39 KB, text/plain)
2007-05-30 13:19 UTC, novakm
Details

Note You need to log in before you can comment on or make changes to this bug.
Description novakm 2007-05-30 13:19:03 UTC
1) Create a new form
2) Set its layout to BorderLayout
3) Drag'n'Drop new panel to the form
4) Drag'n'Drop another panel on top of the previous panel
5) In inspector, move the second panel to the form
6) Click in the form - the first panel gets selected (it takes the whole space
though there are now 2 panels)
7) Try to drag it somewhere - three AIOOBEs are thrown:
java.lang.ArrayIndexOutOfBoundsException: 1
	at
org.netbeans.modules.form.layoutsupport.delegates.BorderLayoutSupport.paintDragFeedback(BorderLayoutSupport.java:243)
	at
org.netbeans.modules.form.layoutsupport.LayoutSupportManager.paintDragFeedback(LayoutSupportManager.java:698)
	at
org.netbeans.modules.form.ComponentDragger.paintDragFeedback(ComponentDragger.java:144)
...

NetBeans IDE Dev (Build 200705281800)
1.6.0_01; Java HotSpot(TM) Client VM 1.6.0_01-b06
Windows Vista version 6.0 running on x86
en_GB (nb); Cp1252
Comment 1 novakm 2007-05-30 13:19:35 UTC
Created attachment 42958 [details]
Exception Stacktrace
Comment 2 Tomas Pavek 2007-07-12 18:16:55 UTC
I'm trying with newest dev build and see no such problems (the second panel has some size after dragged in Inspector and
there's no exception). Probably already fixed.
Comment 3 novakm 2007-08-22 11:07:33 UTC
I didn't succeed in reproducing either - verified.