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.
Open several files in editor. Close one of them. The editor stay focused but the caret is lost - the editor doesn't receive focus gained event.
I investigated: When I close editor using Ctrl-F4 newly activated TopComponent (another editor) does not receive FOCUS_GAINED event on JDK 1.4.1_01 even if requestFocus() is called on activated TopComponent. I asked AWT team and they say it is issue #4648816. It is fixed already in JDK 1.4.2_b18 so I suggest to close this issue. (I checked and it works fine.)
*** Issue 33585 has been marked as a duplicate of this issue. ***
Marek is right - verifying, closing.