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 - IndexOutOfBoundsException while puting panel between button and checkbox
Summary: IndexOutOfBoundsException while puting panel between button and checkbox
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Natural Layout (show other bugs)
Version: 5.x
Hardware: All Linux
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-15 12:48 UTC by Lukas Jungmann
Modified: 2006-03-24 23:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
form (6.60 KB, text/plain)
2005-08-15 12:49 UTC, Lukas Jungmann
Details
java.src (4.94 KB, text/plain)
2005-08-15 12:49 UTC, Lukas Jungmann
Details
ide log (45.30 KB, text/plain)
2005-08-15 12:50 UTC, Lukas Jungmann
Details

Note You need to log in before you can comment on or make changes to this bug.
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.