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.
040920 custom, JDK 1.5, Ocean. Searched for usages of a method. Used KB navigation to select one usage (*), and pressed Enter. Editor correctly opened file with that usage, and displayed it selected, but there was no caret in the editor; focus remained on the F.U. window, as indicated by focus marking. See screenshot. (*) - By the way, when you give focus to the Refactoring window, the initial KB focus is not in the tree of hits. You have to press TAB three times to put it there. This is annoying and should be corrected as well.
Created attachment 17774 [details] Screenshot
The first part of this issue is already fixed. "by-the-way" part is still valid and unfortunately I don't know where is the KB focus. I tried to call requestFocus(), requestFocusInWindow(). But refactoring window still does get KB focus. It is strange.
You perhaps need to override requestFocusInWindow (?) to set focus to the tree. I'm not sure of details but look at e.g. Projects tab impl to get the idea.
I tried everything including overriding requestFocusInWindow(). I give up fixing this bug. I'm always lost in this focus stuff.
*** Issue 56033 has been marked as a duplicate of this issue. ***
Checking in org/netbeans/modules/refactoring/ui/RefactoringPanel.java; /cvs/refactoring/src/org/netbeans/modules/refactoring/ui/RefactoringPanel.java,v <-- RefactoringPanel.java new revision: 1.49; previous revision: 1.48 done Checking in org/netbeans/modules/refactoring/ui/RefactoringPanelContainer.java; /cvs/refactoring/src/org/netbeans/modules/refactoring/ui/RefactoringPanelContainer.java,v <-- RefactoringPanelContainer.java new revision: 1.16; previous revision: 1.15 done