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.
this is probably related to issue 60235, and is intended as a usecase for that. in 5.0 beta, after selecting an option from the "Quickfix" popup menu focus is lost in the current editor window, and clicking in the editor doesn't regain focus. The only way to regain focus in the editor is to first focus another component (eg, clicking in the project view, switching editor tabs etc.).
reassigning
Passing to Milos.
a workaround is to select the quickfix using the keyboard, avoiding the mouse. then it works ok.
reassigning to java. a few hints guys. the problem appears on macosx with 1.5 java only. I suspect the problem is focus transfer that happens when one clicks on the popup. That causes the popup components to be scheduled to receive focus. however then immediately the popup is hidden. the popup factory not only hides the components but also removes them from te frame. Then the focus manager gets confused and cannot resolve correctly who is to receive focus. not sure how to workaround the problem. i've filed a focus related issue at apple, not sure this is covered by it though.
I've filed a bug at apple's tracking system as I wrote a simple testcase that demonstrates the problem we have.
*** Issue 87874 has been marked as a duplicate of this issue. ***
*** Issue 88646 has been marked as a duplicate of this issue. ***
I can reproduce it in 80% on my laptop and it gives an extremely bad user experience (consider P1). Switching between tabs doesn't help, I need to open some dialog (using mouse/main menu as the shortcuts does not work when there is no focus). Many users will not find the simple workaround (opening another dialog) and will restart the IDE instead. Can you provide a link to the apple issue?
no, I cannot. Apple doesn't provide a viewable bug tracking database. After you signup, you have only access to the issues you filed.
*** Issue 92905 has been marked as a duplicate of this issue. ***
Is this issue reproducible in current trunk build?
I haven't seen it for a long while, I don't even think it is reproducible in the late builds of 5.5. Green light for "WORKSFORME" ;-)
I agree - I think there are still some focus related issues in there somewhere, but they aren't nearly as severe as this. I haven't noticed this one for a while - where it was a fix in NB or a fix from Apple in AWT I don't know.
I spoke too soon - there's still a problem there in 6.0m7. Sometimes focus is lost after using the code completion popup (or any popup in the editor i think), and the only way to get focus back is to close the file that you're currently editing and re-open it. It's happening quite a bit. I don't think this was such a problem in 5.5. This is a really, really painful bug for anyone using netbeans on OSX - please raise the priority of it if possible.
I confirm the problem has reappeared (coincidence??) and is TERRIBLY annoying.
Lets try to find a workaround for NB6.0. Milos, Tomas, we will probably need help with this.
*** Issue 111842 has been marked as a duplicate of this issue. ***
Milos, do you still have that test case? The problem is pretty bad on JDK 5 on mac. See additional comments in issue 111842
Milos, Tomas, any new info and/or hints? Thanks.
I can reproduce it with invoking the editor hints popup for a missing import and selecting the popup item by mouse. If I use solely keybord everything seems to work as expected. From the debugger I found that the focus is requested on the configuration combo box in the main toolbar. I have to click to the editor to get the focus back. I'll try to find some workaround for NB 6.0.
fixed in /cvs/editor/hints/src/org/netbeans/modules/editor/hints/HintsUI.java,v <-- HintsUI.java new revision: 1.35; previous revision: 1.34 If you have another focus issue with editor hints focus please reopen with detailed steps how to reproduce.