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.
I'm asked about PropertyEditorSupport from community member in Japan. He is creating a component and using PropertyEditorSupport. But it generates "???" as argument in readonly area when code is generated. jxxxTextField2.setWordCase(???); It happens on only NetBeans. He is saying that this problem does not happens on JBuilder. JBuilder can generate the correct argument in it. After implementing getJavaInitializationString(), it can generate the correct codes. I'd like to know: - Why JBuild is working - Is this limitation of NetBeans? or bug? Sample code: http://www.ts-research.net/netbeans_20060916/
According to the specification getJavaInitializationString() is required to be implemented. In this case the property is of Integer type. So JBuilder likely generates primitive types directly if it does not get the java init string from the property editor. We don't do this, but could do as well. However, you can fix this on your side easily - implement getJavaInitializationString() and let it return the number converted to string. Even better would be to return the name of the constant, e.g. WORDCASE_UPPER.
Thank you very much for quick evaluation. I'll talk to him about this.
Hi tpavek, Can I ask you one more thing? > According to the specification getJavaInitializationString() is required to be implemented Could you please tell us the exact pointer for this spec? I'm sorry I could not find it, I checked API docs, but I could not see such description.
The JavaBeans specification can be found on http://java.sun.com/products/javabeans/docs/spec.html Look at the section 9.2.6.
Closing.