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 116758 - Visual Editor: Duplicating components doesn't change "name" property
Summary: Visual Editor: Duplicating components doesn't change "name" property
Status: RESOLVED DUPLICATE of bug 112782
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: Other Windows XP
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords: RANDOM
Depends on:
Blocks:
 
Reported: 2007-09-25 23:16 UTC by ksilz
Modified: 2007-10-09 16:52 UTC (History)
0 users

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 ksilz 2007-09-25 23:16:02 UTC
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.
Comment 1 Jana Maleckova 2007-10-04 10:49:11 UTC
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 ?
Comment 2 ksilz 2007-10-05 11:31:28 UTC
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"?
Comment 3 Jana Maleckova 2007-10-08 12:46:11 UTC
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
Comment 4 ksilz 2007-10-08 13:07:42 UTC
Your last reply was probably for a different bug, I guess.  :-)
Comment 5 Jana Maleckova 2007-10-08 14:27:51 UTC
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]
Comment 6 ksilz 2007-10-09 14:36:25 UTC
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).
Comment 7 ksilz 2007-10-09 15:24:21 UTC
I just saw it again with an entire panel I duplicated; all the labels in there kept their old "name" property.
Comment 8 Tomas Pavek 2007-10-09 15:55:42 UTC
Then it is most likely issue 112782 - fixed after beta1. You can try it on the current daily builds, or wait for beta2.
Comment 9 Tomas Pavek 2007-10-09 16:42:12 UTC

*** This issue has been marked as a duplicate of 112782 ***
Comment 10 ksilz 2007-10-09 16:52:06 UTC
Ok, I'll wait for beta2 then.