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 171760 - IllegalArgumentException: javax.swing.table.DefaultTableColumnModel@1cdd92f
Summary: IllegalArgumentException: javax.swing.table.DefaultTableColumnModel@1cdd92f
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/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-08 21:59 UTC by Marian Mirilovic
Modified: 2010-04-23 06:56 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 1557


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marian Mirilovic 2009-09-08 21:59:20 UTC
58 duplicates so far ...

Build: NetBeans IDE 6.1 (Build 200805300101)
VM: Java HotSpot(TM) Client VM, 11.2-b01, Java(TM) SE Runtime Environment, 1.6.0_12-b04
OS: Windows XP, 5.1, x86
User comments: 

Stacktrace: 
java.lang.IllegalArgumentException: javax.swing.table.DefaultTableColumnModel@1cdd92f
        at java.beans.PropertyEditorSupport.setAsText(PropertyEditorSupport.java:166)
        at org.netbeans.modules.form.FormPropertyEditor.setAsText(FormPropertyEditor.java:250)
        at org.openide.explorer.propertysheet.PropUtils.updatePropertyEditor(PropUtils.java:589)
        at org.openide.explorer.propertysheet.PropUtils.updateProp(PropUtils.java:611)
        at org.openide.explorer.propertysheet.SheetCellEditor.stopCellEditing(SheetCellEditor.java:374)
        at javax.swing.plaf.basic.BasicTableUI$Handler.mousePressed(BasicTableUI.java:986)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:263)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
        at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:262)
        at java.awt.Component.processMouseEvent(Component.java:6213)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
Comment 1 Jan Stola 2009-09-09 16:23:57 UTC
It is completely legal for a PropertyEditor to throw IllegalArgumentException. It was a bug of property sheet that such 
exceptions weren't handled correctly. It works correctly by now e.g. no exception dialog is displayed - "Invalid value" 
dialog is displayed instead.

On the other hand, most of these exceptions were thrown by PropertyEditors that do not support in-line text editing of 
their values. Such property editors should rather override getAsText() method to return null. Almost all property 
editors provided by form module do this by now.
Comment 2 Marian Mirilovic 2010-04-23 06:56:57 UTC
v/c