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.
On the visual editor, my JTable had minimumSize, maximumSize, and preferredSize values of "Error getting property value" in red. Neither left click nor edit is allowed. After resizing the JTable, minimumSize and maximumSize resumed proper operation, but preferredSize is still disabled. I'm using Source view to edit my form because Design lacks some capabilities (such as content, header, and column-/row-dimension editing for JTable and support for BoxLayout.Y_AXIS).
Created attachment 45032 [details] the message log, which the IDE told me to include
Could you also attach the entire form where this happens? I suspect the JTable must be configured certain way to cause this problem. It does not normally happen if I just add a JTable to a form. Thanks
Created attachment 45103 [details] source for troubling form
Created attachment 45104 [details] troubling form (I guess 'Plain text' is appropriate.)
The values are no longer giving me trouble. I have altered the class, but hopefully the context will give some clue as to the cause. I believe I was using Design when the trouble occurred. Shortly after submitting the issue, all three fields did it again and I found no solution, later closing the IDE.
Also, I found how to edit the JTable's content, header, and column/row dimensions.
So the problem just appeared and disappeared, not tied to particular setup/content of the form? I.e. is not there after you restart the IDE, you must do "something" to make it happen.
The same happens to me, but on a Mac, using NB 5.0 (Mac OS X 10.3 can only use JVM 1.4). I'm not using any tables in my form, but the "IllegalStateException: Error getting property value" happened to me after editing JComboBox properties. I restarted the form from scratch, because this error prevents the form editor from saving any changes. But after reopening the new project and editing some properties of the combo boxes, both of them ended up showing this problem again. The first time I had copied the second combo box from the first, so I thought that was causing the problem, but the second time around I created both of them (actually _all_ widgets, because I didn't trust the form editor anymore) as new items.
Created attachment 45156 [details] My messages.log file
Created attachment 45159 [details] The problematic form; please note how StringItem's with index 2 and 5 have not been updated in the code
Created attachment 45160 [details] The source file belonging to the form
In my case only 'minimumSize' and 'preferredSize' have the problem. Resizing doesn't do any good. @tpavek: After restarting the IDE, nothing has changed, said properties are still red and uneditable in 'Design' mode. Since I don't see anything special with the combo boxes in the form's XML file, I have no idea whatsoever how to go about resolving this.
Sorry, was under the impression that I could set platform, OS etc. separately just for my comments... adjusted. Please read version '5.0' as '>= 5.0' ;)
We know about the problems with combo box (see issue 72802), but the fact it can happen also with JTable was new. I wanted to know as much as possible about how to reproduce the JTable problem. With the combo box it seems it helps not to set the content in the GUI builder (i.e. reset the 'model' property to default), write the model code manually.
Yes, all properties are fine on restart. I just returned from summer camp and will try to pay attention to the values as to when they mess up.
I think this is the same problem as issue 72802 - uninstalling ComponentUI due to failure in JComponent serialization. Here the offending component is JTableHeader. Should be fixed now (for 6.0). *** This issue has been marked as a duplicate of 72802 ***