JTabbedPane stateChanged bug?

When using tabbedpane.remove() on the current tab it may have 2 different results depending on where the tab was located. If the tab was the last one the stateChanged is triggered when the previous tab is autofocused, but if its not the last tab it is not triggered even though a new tab is focued. Is there any reason for this or is it a bug?

[350 byte] By [invictus2a] at [2007-10-2 14:41:30]
# 1
In either case I gotta imagine that the fix is pretty easy
tjacobs01a at 2007-7-13 13:10:35 > top of Java-index,Security,Event Handling...
# 2
I just got the answer for this on the swing forum. I still wonder if its a bug or a feature though :)
invictus2a at 2007-7-13 13:10:35 > top of Java-index,Security,Event Handling...