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 am developing some UI using bean components that i have created. In my code, order of setting properties important in some cases. But NetBeans always generates code for properties setting in the alphabetical order of property names, which is not good in my case. Can NetBeans be changed/modified to generate code in the order they are set? Thanks.
I assume you mean form editor UI code generation. Reassigning to form module.
Your assumption is correct Mr.Raskanin. I was confused about the module. I thought editor module is related to UI code generation. Sorry about that.
The properties should be order-independent according to JavaBeans specification. In spite of this fact it is not the case even for some Swing components (see for example issues 25834, 35916). We have implemented hacks to resolve these Swing problems. Unfortunately it is not possible to change the order of the properties directly in UI of form editor. You can use Pre-initialization and Post-initialization code as a workaround (open custom editor for some property using '...' button in the property sheet and press Advanced button). *** This issue has been marked as a duplicate of 39579 ***