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.

Bug 44144

Summary: closing an editor tab activates non-recent window
Product: platform Reporter: mno <mno>
Component: Window SystemAssignee: jrojcek <jrojcek>
Status: RESOLVED WORKSFORME    
Severity: blocker CC: jglick, mkrauskopf, mmirilovic
Priority: P2    
Version: 3.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:
Bug Depends on:    
Bug Blocks: 50354    

Description mno 2004-06-02 09:40:48 UTC
After I close an editor tab i expect that the 
most recently used tab will become active. At 
the moment I see that the next tab will become 
active. It is quite annoying to me.
Comment 1 Milos Kleint 2004-06-21 14:08:56 UTC
The UI spec doesn't elaborate on behaviour when closing tabs (at least
I could not find it, it discusses only opening.

http://ui.netbeans.org/docs/ui/ws/ws_spec.html#3.6

reassigning to HIE for evaluation and decision.
Comment 2 _ tboudreau 2004-07-27 18:41:33 UTC
Consider also the case where you close a tab that is not the selected one - I suggest you 
restrict this case to when the user closes the window that is the selected one.  For the 
other cases, the current behavior is correct.
Comment 3 Marian Mirilovic 2006-08-17 07:50:41 UTC
*** Issue 75589 has been marked as a duplicate of this issue. ***
Comment 4 Marian Mirilovic 2006-08-17 07:56:48 UTC
*** Issue 55043 has been marked as a duplicate of this issue. ***
Comment 5 Jesse Glick 2009-09-03 18:11:34 UTC
NB has worked this way for some years now.

IMHO the previous close behavior was correct, it was the open behavior which was wrong: new tabs should be opened next
to the currently selected tab, rather than at the end as is currently done. In other words, the visible order of tabs
would more or less mirror their history, and no focus history need be kept. Firefox can be configured to behave this way
and it is useful. Ultimately there is not going to be universal agreement on any particular policy, of course.