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 64441 - IndexOutOfBoundsException when editing JTable model
Summary: IndexOutOfBoundsException when editing JTable model
Status: VERIFIED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-15 14:40 UTC by Jiri Prox
Modified: 2005-10-27 10:24 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
exception (3.91 KB, text/plain)
2005-09-15 14:42 UTC, Jiri Prox
Details
screenshot (10.05 KB, image/png)
2005-09-15 14:45 UTC, Jiri Prox
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Prox 2005-09-15 14:40:01 UTC
NB 5.0 dev build 20050915
JDK 1.5.0_05

IndexOutOfBoundsException is thrown when deleting rows from JTable model

Steps to reproduce:
1) create new form and place JTable into it
2) go to model editor (selec JTable, in the properties window click on Model)
3) select type in the last row -> the combobox is opened
4) click again to the same place -> the combobox is closed (but the array is
displayed in the right  - see the screenshot)
5) click on delete button
-> row is deleted
6) click somewhere in the table
->java.lang.IndexOutOfBoundsException: Index: 1, Size: 1
	at java.util.ArrayList.RangeCheck(ArrayList.java:547)
	at java.util.ArrayList.set(ArrayList.java:338)
	at
org.netbeans.modules.form.editors2.TableModelEditor$NbTableModel.setValueAt(TableModelEditor.java:573)
Comment 1 Jiri Prox 2005-09-15 14:42:16 UTC
Created attachment 24842 [details]
exception
Comment 2 Jiri Prox 2005-09-15 14:45:37 UTC
Created attachment 24843 [details]
screenshot
Comment 3 Jan Stola 2005-09-29 15:40:51 UTC
Fixed.
Comment 4 Jiri Prox 2005-10-27 10:24:02 UTC
verified