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 49120 - NetBeans always generated code for setting properties in Alphabetical order.
Summary: NetBeans always generated code for setting properties in Alphabetical order.
Status: RESOLVED DUPLICATE of bug 39579
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-09-15 23:40 UTC by bapujiv
Modified: 2004-09-16 16:32 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bapujiv 2004-09-15 23:40:22 UTC
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.
Comment 1 Martin Roskanin 2004-09-16 10:25:04 UTC
I assume you mean form editor UI code generation. Reassigning to form
module.
Comment 2 bapujiv 2004-09-16 13:35:18 UTC
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.
Comment 3 Jan Stola 2004-09-16 16:32:39 UTC
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 ***