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.
Product Version: NetBeans IDE Dev (Build 070815) Java: 1.6.0_02; Java HotSpot(TM) Client VM 1.6.0_02-b05 System: Windows XP version 5.1 running on x86; Cp1252; en_GB (nb) Description: ============ have form with some components set cursor on some variable in guarded block do refactoring - rename for this variable see, cursor jumps to the end of guarded block when the same usecase is done in simple java class, cursor always keeps it's position
This is because the entire guarded block is replaced (i.e. removed and added again). It happens when you do any change in the form and switch back to source. See also issue 18350. We could try to reconstruct the cursor position (remember column/row relatively to the guarded block start).
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