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 using the Swing visual editor (Matisse). Sorry - I couldn't find the right Issuezilla component! There I often copy components, and then I rename them by right-clicking on them and then selecting "Changing variable name...". The problem: Sometimes, the "name" property of that component isn't changed at the same time, leading to funny results. Most of the time, however, the "name" property _is_ actually changed.
the right name for component which presents Matisse is Form, so please further issue related to this module, report to this. With the reference to your issue. I miss some information like IDE build number, jdk version. Your described bug is not reproducible on my build so is it random or regular problem in your case. Did you try it with clear userdir ?
I use NB 6.0, beta 1, on JDK 1.6u1 on Windows XP, SP2. The bug happens randomly - I only noticed it because the app wasn't working, and then I saw that the components still had the name "jlabel1" in the properties sheet, though their variable name did have changed. I can't find a pattern here. How do I create a "clear userdir"?
Thanks for your reply Otherwise: If you want your Netbeans to use other userdir than default, just start exe file with switch --userdir [USERDIRPATH] Please try it and let us know if this issue always remains
Your last reply was probably for a different bug, I guess. :-)
why do you think ? my replay is relevant for your question How do I create a "clear userdir"? If you want your Netbeans to use other userdir than default (means empty-clear directory as well), just start exe file with switch --userdir [USERDIRPATH]
I think I found the pattern - it happens when you _duplicate_ a component: The variable name is made unique ("jlabel2" or so), but not the name in the properties pane; you now have two components with the same properties name. When you then rename the variable name of a component, it doesn't change the properties name anymore (probably gets confused when it finds more than one component with the same name).
I just saw it again with an entire panel I duplicated; all the labels in there kept their old "name" property.
Then it is most likely issue 112782 - fixed after beta1. You can try it on the current daily builds, or wait for beta2.
*** This issue has been marked as a duplicate of 112782 ***
Ok, I'll wait for beta2 then.