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.
[build 200508111800] - Add JPanel to the following form (between JCheckbox and JButton) => java.lang.IndexOutOfBoundsException: Index: 2, Size: 2 at java.util.LinkedList.entry(LinkedList.java:368) at java.util.LinkedList.get(LinkedList.java:313) at org.netbeans.modules.form.layoutdesign.LayoutInterval.getSubInterval(LayoutInterval.java:405) at org.netbeans.modules.form.layoutdesign.LayoutFeeder.mergeParallelInclusions(LayoutFeeder.java:1716) ...
Created attachment 23806 [details] form
Created attachment 23807 [details] java.src
Created attachment 23808 [details] ide log
Seems to be fixed together with other fixes done this week.
Reopen - I'm able to reproduce it in the build 050823
I am not able to reproduce this exception in the latest development build, but when I place the panel between JCheckbox and JButton such that it is not snapped next to, but is aligned on the top to both these components then the following exception is thrown: java.lang.IllegalStateException: javax.swing.JCheckBox ... is not attached to a horizontal group at org.jdesktop.layout.GroupLayout.checkComponents(GroupLayout.java:819) at org.jdesktop.layout.GroupLayout.prepare(GroupLayout.java:801) at org.jdesktop.layout.GroupLayout.layoutContainer(GroupLayout.java:655) at org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder. createLayout(SwingLayoutBuilder.java:127) at org.netbeans.modules.form.layoutdesign.support.SwingLayoutBuilder. setupContainerLayout(SwingLayoutBuilder.java:73) at org.netbeans.modules.form.VisualReplicator.updateContainerLayout (VisualReplicator.java:255) ...
It seems to work correctly in the latest development build => marking as fixed.
v.