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.
Steps to reproduce: 1. Place carret on field to be renamed. 2. Alt-Shift-R to rename it. 3. Fill the new name, select "Preview all changes" then "Next" 4. In preview pane, hit "Alt-R" (Do Refactoring) 5. The field is renamed, but attempts to move the carret do nothing - the carret is not visible, not even after hitting "Ctrl-0" (Select source window") Clicking in the editor windows restores the carret. Sometimes I've seen the carret in output window...
I can't reproduce the problem on my FC3 with Gnome 2.8. Could you please describe your Linux config in a more detail? Thanks. There is a debug that can dump how the caret gets and loses focus. Please edit netbeans.conf and add -J-Dnetbeans.debug.editor.caret.focus=true and run NB. Please attach the messages.log with the debug messages to this issue. Thanks. As this is a focus issue reassigning to core/winsys for further evaluation.
My Linux box is runing Fedora Core 5, updated regularly. uname -a yields: Linux <hostname-greyed-out> 2.6.16-1.2122_FC5 #1 Sun May 21 15:01:01 EDT 2006 i686 i686 i386 GNU/Linux rpm -qa|grep glibc glibc-headers-2.4-8 glibc-kernheaders-3.0-5.2 glibc-devel-2.4-8 glibc-2.4-8 glibc-common-2.4-8 Gnome is 2.14, patched to whatever the current patch level available in FC5 yum repositories. I'll attache the compressed messages.log. What I did again: I've created a new project, tried to reproduce the bug again, the problem didn't appear. Thinking there must be something I did in the other project, I tried to use Jalopy formatter (that one keeps crashing since couple of days before seeing the carret problem), but the problem still didn't appear. Then I've opened a previous project, changed its Java Platform for runtime to JDK1.5 (different than what the IDE uses - 1.6beta2) and I repeated the initial steps. The carret re-appeared in the output window.
Created attachment 30954 [details] messages.log file, compressed with jar utility
I've tried also the following combination: IDE with JDK1.5 Project set up to use JDK1.4.2 and again the carret showed up in Output Window...
Created attachment 30955 [details] The log from JDK1.5 - JDK1.4 combination
Yes I reproduced this issue on my Win XP, from my experiences it has nothing to do with source level of project, but there has to be output window opened prior to operations described above and output window has to be in regular, not auto-hide state. As a result, focus (and caret) is inside output window, but editor is activated in window system, which leads to problem.
Actually this is a duplicate of 77219 *** This issue has been marked as a duplicate of 77219 ***