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.
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)
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.
v/c