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 146049 - Exception when column is deleted from table content
Summary: Exception when column is deleted from table content
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL: http://statistics.netbeans.org/analyt...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-09-03 14:42 UTC by Jana Maleckova
Modified: 2008-09-05 13:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jana Maleckova 2008-09-03 14:42:12 UTC
Product Version: NetBeans IDE Dev (Build 20080903003257)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)

Description:
============
Place jTable in container
1. invoke table content (invoke popup menu on jTable in designer and choose Table Contents)
2. Switch to Columns tab Card and select the second column (Type) of the last row = > Combo should appear.
3. Press Delete
4. Select the another row which is on the last position now => IOBE is thrown
Table content could not be saved now

StackTrace:
===========
java.lang.IndexOutOfBoundsException: Index: 3, Size: 3
	at java.util.LinkedList.entry(LinkedList.java:365)
	at java.util.LinkedList.get(LinkedList.java:315)
	at org.netbeans.modules.form.editors.TableCustomizer$CustomizerTableModel.setValueAt(TableCustomizer.java:1876)
	at javax.swing.JTable.setValueAt(JTable.java:2719)
	at javax.swing.JTable.editingStopped(JTable.java:4721)
	at javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:125)
Comment 1 Jan Stola 2008-09-04 10:31:35 UTC
Reproducible - cell editing should be stopped before the row is deleted.
Comment 2 Jan Stola 2008-09-04 12:23:53 UTC
Fixed.

Modified file: http://hg.netbeans.org/main?cmd=changeset;node=0d39febc28d4
Comment 3 Jana Maleckova 2008-09-05 13:40:21 UTC
verified on

Product Version: NetBeans IDE Dev (Build 20080905031732)
Java: 1.6.0_10-rc; Java HotSpot(TM) Client VM 11.0-b13
System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb)