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.
Sometimes if one thing is changed on a form--or perhaps even if the form is just opened and then closed again--some of the XML elements will be rearranged gratuitously. This causes e.g. VC systems t o show a diff, although the content has not really changed. Suggest using a stable ordering for the items in an XML file so that this will not happen. E.g. sort by property name, and so on. The same reordering occurs in the Java source, too.
Priority is changed to P4 (normal).
verified in [nb31](34) [boston](1160)
Was this in fact fixed? How? What is the sort order? See the patch in issue #31372 - e.g. apisupport/lite/src/org/netbeans/modules/apisupport/lite/LoaderPanel.form has a totally useless diff. Not sure what version of NB last touched this .form nor what version of NB Maxym is using, but this bug is marked fixed as of NB 3.1 and I am guessing that the form is not *that* old. The new order is not alphabetical or anything obvious.
I don't know if/how this was fixed, this bug is too old. I think now the properties in the .form file are stored in the order they come from BeanInfo (but I'm not sure now if they are set in the same order when loaded, as they go through DOM, but probably yes). They are also generated in the java file the same way. It's not so easy to chanege the order, as the properties are not always order-independent (should be according to JavaBean spec, but even in Swing there are several cases where the order matters). I'll investigate this more. See also issue 22146.
I was going to suggest use of Utilities.topologicalSort, but in fact it does not guarantee (a) a stable sort (unrelated elements keep their original ordering whenever possible), or (b) consistency between call to call, since the input dependencies are unordered maps. I am not even sure that the notion of a "stable topological sort" is well-defined (certainly "stable total sort" is well-defined). So it is not quite trivial if there are inter-property dependencies.
This bug was reported against NetBeans IDE 6.0 or an older release, or against a non-maintained module. NetBeans team does not have enough resources to get to this issue, therefore we are closing the issue as a WONTFIX. If you are interested in providing a patch for this bug, please see our NetFIX guidelines for how to proceed. We apologize for any inconvenience. Thank you. The NetBeans Team