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 207065 - Rename of member variable fails for some form fields
Summary: Rename of member variable fails for some form fields
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-01-09 14:16 UTC by swpalmer
Modified: 2012-04-23 15:13 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 swpalmer 2012-01-09 14:16:09 UTC
Product Version = NetBeans IDE 7.1 (Build 201112071828)
Operating System = Windows 7 version 6.1 running on x86
Java; VM; Vendor = 1.7.0_02
Runtime = Java HotSpot(TM) Client VM 22.0-b10

I made a JDialog Swing form added a JTabbedPane and a JButton.  In the source view I did ctrl-R to rename the JButton from the default value jButton1 to "okButton" - this worked.  I then did the same thing to rename the field for jTabbedPane1, the rename dialog was activated as normal, and when I pressed OK I didn't get any error message, but the position in the editor changed and when I went back to see the variables, the jTabbedPane1 variable was not renamed.  I repeated this three times with the same effect.
Comment 1 swpalmer 2012-01-09 14:19:51 UTC
Note that the rename works when done from the Design view.  I was using the Source view when this failed for jTabbedPane1 and also when it succeeded for jButton1
Comment 2 Jan Stola 2012-04-23 15:13:21 UTC
I am able to reproduce this issue in NetBeans 7.1.2 but it seems to work correctly in the lastest development build. So, it was fixed probably by some other change.