After calling JTabbedPane.removeAll(), the JTabbedPane still has x number of tabs?
问题 In my JTabbedPane , I am removing tabs in 2 different ways: tabbedPane.remove(index) and tabbedPane.removeAll() Both work fine in terms of closing the tabs. However, I have a change listener on my TabbedPane that calls back to another module to report on tab changes. This is where the problem is. When adding and removing tabs using remove(index) , the source TabbedPane in the stateChanged() method contains the correct number of tabs when checking tabbedPane.getTabCount() . However, when