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 62277

Summary: IndexOutOfBoundsException while puting panel between button and checkbox
Product: guibuilder Reporter: Lukas Jungmann <jungi>
Component: Natural LayoutAssignee: issues@guibuilder <issues>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 5.x   
Hardware: All   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: form
java.src
ide log

Description Lukas Jungmann 2005-08-15 12:48:09 UTC
[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)
...
Comment 1 Lukas Jungmann 2005-08-15 12:49:19 UTC
Created attachment 23806 [details]
form
Comment 2 Lukas Jungmann 2005-08-15 12:49:45 UTC
Created attachment 23807 [details]
java.src
Comment 3 Lukas Jungmann 2005-08-15 12:50:33 UTC
Created attachment 23808 [details]
ide log
Comment 4 Tomas Pavek 2005-08-18 21:24:03 UTC
Seems to be fixed together with other fixes done this week.
Comment 5 Marek Grummich 2005-08-23 14:45:17 UTC
Reopen - I'm able to reproduce it in the build 050823
Comment 6 Jan Stola 2005-09-20 14:12:26 UTC
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)
  ...
Comment 7 Jan Stola 2005-10-06 10:27:14 UTC
It seems to work correctly in the latest development build => marking
as fixed.
Comment 8 Lukas Jungmann 2006-03-24 23:40:38 UTC
v.